public MainPage() { InitializeComponent(); //LoginUserModel model = new LoginUserModel(); instance = this; ILoginFormPresenter presenter = new LoginFormPresenter(); BindingContext = presenter; }
public LoginForm() { InitializeComponent(); this.FormBorderStyle = FormBorderStyle.None; lblSlogan.Text = "Another way\nto get your work done..."; initTitleBar(); mPresenter = new LoginFormPresenter(this); }
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); }