Exemple #1
0
        public new void Show()
        {
            Initialization();

            context.MainForm = this;
            registration.Close();
            authentication.Close();
            base.Show();
        }
Exemple #2
0
        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");
            }
        }