This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace MicroAgent.Library | |
{ | |
public class AppearanceManager | |
{ | |
public AppearanceManager () | |
{ | |
} | |
public static void SetAppearance() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading; | |
using MonoTouch.Foundation; | |
using MonoTouch.UIKit; | |
using MonoTouch.CoreFoundation; | |
namespace MobileAgent | |
{ | |
public class Appirator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static bool IsIOS41OrBetter | |
{ | |
get | |
{ | |
string version = UIDevice.CurrentDevice.SystemVersion; | |
string[] versionElements = version.Split('.'); | |
if (versionElements.Length > 0) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// the end of FinishedLaunching | |
window.RootViewController = tabBar; | |
window.MakeKeyAndVisible (); | |
AtmHudManager.Instance.RegisterView(window); | |
if (Settings.Current.FirstStartup) | |
{ | |
oc = new OnboardingController(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static bool IsIOS41OrBetter | |
{ | |
get | |
{ | |
string version = UIDevice.CurrentDevice.SystemVersion; | |
string[] versionElements = version.Split('.'); | |
if (versionElements.Length > 0) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void SetAppearance() | |
{ | |
if (Util.IsIOS5OrBetter) | |
{ | |
//do some stuff here | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static string RootPath | |
{ | |
get | |
{ | |
return Path.Combine(Environment.GetFolderPath (Environment.SpecialFolder.MyDocuments), ".."); | |
} | |
} | |
public static string DocumentPath | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static string AppVersion | |
{ | |
get | |
{ | |
return NSBundle.MainBundle.ObjectForInfoDictionary("CFBundleVersion").ToString(); | |
} | |
} | |
public static string CurrentVersion | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BaseDialogViewController : DialogViewController | |
{ | |
public BaseDialogViewController () : this(null, false) | |
{ | |
} | |
public BaseDialogViewController(RootElement root, bool pushing) : base(root, pushing) {} | |
public override void ViewWillAppear (bool animated) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void SetAppearance() | |
{ | |
if (Util.IsIOS5OrBetter) | |
{ | |
UINavigationBar.Appearance.SetBackgroundImage( | |
Resources.NavBarHeaderBackground, | |
UIBarMetrics.Default); | |
UIBarButtonItem.Appearance.SetBackgroundImage( | |
Resources.BarButtonNormal.CreateResizableImage(new UIEdgeInsets(0,5,0,5)), |