public new void Show() { Initialization(); context.MainForm = this; registration.Close(); authentication.Close(); base.Show(); }
public void Authentication(object sender, EventArgs e) { User user = new User(view.Username, view.Password); if (authenticationService.Login(user)) { mainPresenter.CreateUserPresenter().Run(); view.Close(); } else { view.ShowError("Wrong login or password"); } }