示例#1
0
        public MainPage()
        {
            InitializeComponent();
            //LoginUserModel model = new LoginUserModel();
            instance = this;
            ILoginFormPresenter presenter = new LoginFormPresenter();

            BindingContext = presenter;
        }
示例#2
0
        public LoginForm()
        {
            InitializeComponent();
            this.FormBorderStyle = FormBorderStyle.None;

            lblSlogan.Text = "Another way\nto get your work done...";
            initTitleBar();
            mPresenter = new LoginFormPresenter(this);
        }
示例#3
0
 public bool Run(ILifetimeScope scope)
 {
     Context.UpdateDb();
     Scope = scope;
     LoginFormPresenter.Run();
     if (LoginAttemptResult != LoginResults.Success)
     {
         return(false);
     }
     MainFormPresenter.Run(User);
     foreach (Form form in Application.OpenForms)
     {
         form.Close();
     }
     return(reloginAttempt);
 }