Пример #1
0
        private void buttonMainMenu_Click(object sender, EventArgs e)
        {
            this.Hide();
            MainMenuForm mainMenuForm = new MainMenuForm();

            mainMenuForm.Show();
        }
Пример #2
0
        private void buttonSignIn_Click(object sender, EventArgs e)
        {
            var appUser = _applicationUserService.GetApplicationUserByEmail(textEmail.Text);

            if (appUser != null && appUser.Password == textPassword.Text)
            {
                this.Hide();
                MainMenuForm mainMenuForm = new MainMenuForm();
                mainMenuForm.Show();
            }
            else
            {
                MessageBox.Show("E-Posta veya şifre hatalı.");
            }
        }