private void GoToAccounts(object o) { var vc = new AccountsViewController(); var nav = new ThemedNavigationController(vc); PresentViewController(nav, true, null); }
private void GoToNewAccount(Unit o) { var vc = new LoginViewController(); var nav = new ThemedNavigationController(vc); PresentViewController(nav, true, null); }
public static void PresentModal(this UIViewController presenter, UIViewController presentee) { if (presentee is WebBrowserViewController) { presenter.PresentViewController(presentee, true, null); } else { var cancelButton = new UIBarButtonItem { Image = Images.Buttons.Cancel }; cancelButton.GetClickedObservable().Subscribe(_ => presenter.DismissViewController(true, null)); presentee.NavigationItem.LeftBarButtonItem = cancelButton; var nav = new ThemedNavigationController(presentee); presenter.PresentViewController(nav, true, null); } }
private void GoToNewAccount(object o) { var vc = new LoginViewController(); var nav = new ThemedNavigationController(vc); PresentViewController(nav, true, null); }