public ConsequenceDetailController (AppProfile profile) { NSBundle.MainBundle.LoadNib ("ConsequenceDetailController", this, null); this.Profile = profile; this.ViewDidLoad(); LastLabelYOffset = this.caption.Frame.Y + this.caption.Frame.Height; }
public XsltWebView(AppProfile profile) : base("XsltWebView", null) { this.Profile = profile; if (TransformCache == null) TransformCache = new Dictionary<string, XslCompiledTransform>(); }
public ConsequenceTableSource (AppProfile profile, SpendingConsequencesViewController parent) { this.ParentController = parent; this.Profile = profile; if (NSUserDefaults.StandardUserDefaults ["Gender"] != null) Enum.TryParse (NSUserDefaults.StandardUserDefaults ["Gender"].ToString (), true, out UserGender); }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { Profile = new AppProfile("MainProfile.xml"); CreateUserCopies(); LoadConsequenceLibraries(Profile); LoadUserProfiles(); UpdateExchangeRates(); window = new UIWindow (UIScreen.MainScreen.Bounds); SpendingConsequencesViewController viewController = new SpendingConsequencesViewController (Profile); navController = new UINavigationController (viewController); window.RootViewController = navController; window.MakeKeyAndVisible (); return true; }
public TemplatePickerModel(AppProfile profile) { this.Profile = profile; }
private void LoadConsequenceLibraries(AppProfile receivingProfile) { foreach (var file in Directory.GetFiles(SubProfile.LibraryFolder, "Consequences_V*.xml")) try { var library = ACompositionTree.Load<SubProfile>(file); if (library != null) receivingProfile.AddSubProfile(Path.GetFileNameWithoutExtension(file), library); } catch (Exception ex) { Console.WriteLine("{0} thrown when loading subprofile {1}: {2}", ex.GetType().Name, file, ex.Message); } }
public TemplatePickerSheet (AppProfile profile) : base ("TemplatePickerSheet", null) { this.Profile = profile; }
public SpendingConsequencesViewController(AppProfile profile) { NSBundle.MainBundle.LoadNib ("SpendingConsequencesViewController", this, null); this.Profile = profile; this.ViewDidLoad (); }