protected override void ProfileButtonClicked(object sender, System.EventArgs e)
 {
     var accounts = new AccountsController();
     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);
 }
        private void ShowAccountsAndSelectedUser(string user)
        {
            var accountsController = new AccountsController();
            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);
        }
 public EditSource(AccountsController dvc)
     : base(dvc)
 {
     _parent = dvc;
 }