private void ShowAccountsAndSelectedUser(string user)
        {
            var accountsController = new AccountsViewController();
            accountsController.NavigationItem.LeftBarButtonItem = null;
            var login = new LoginViewController { Username = user };
            login.Login = (username, password) => {
                Utils.Login.LoginAccount(username, password, login);
            };

            var navigationController = new CustomNavigationController(this, accountsController);
            navigationController.PushViewController(login, false);
            Transitions.TransitionToController(navigationController);
        }
예제 #2
0
 protected override void ProfileButtonClicked(object sender, System.EventArgs e)
 {
     var accounts = new AccountsViewController();
     var nav = new UINavigationController(accounts);
     accounts.NavigationItem.LeftBarButtonItem = new UIBarButtonItem(NavigationButton.Create(CodeFramework.Images.Buttons.Cancel, () => {
         var appDelegate = UIApplication.SharedApplication.Delegate as AppDelegate;
         Transitions.Transition(appDelegate.Slideout, UIViewAnimationOptions.TransitionFlipFromRight);
     }));
     Transitions.Transition(nav, UIViewAnimationOptions.TransitionFlipFromLeft);
 }