public override bool FinishedLaunching(UIApplication app, NSDictionary options) { GymSettingsDataSource.Read(); Text.initialize(); gymNavigationController = new GymNavigationViewController(); gymNavigationController.View.Frame = new System.Drawing.RectangleF(0, 20, window.Frame.Width, window.Frame.Height - 50); navigationController = new UINavigationController(gymNavigationController); navigationController.NavigationBar.BarStyle = UIBarStyle.Black; window.AddSubview(navigationController.View); window.MakeKeyAndVisible(); return(true); }
public override void ViewWillDisappear(bool animated) { userNameField.ResignFirstResponder(); passwordField.ResignFirstResponder(); GymSettingsDataSource.UserName = userNameField.Text; GymSettingsDataSource.Password = passwordField.Text; GymSettingsDataSource.Write(); TTTHttp.LogOn(); if (TTTHttp.isError) { UIAlertView alert = new UIAlertView(); alert.Title = "Påloggingsfeil"; alert.Message = Text.getString(TTTHttp.ErrorMessage); alert.AddButton("OK"); alert.Show(); } base.ViewWillDisappear(animated); }
public GymSettingsViewController() { GymSettingsDataSource.Read(); }