private void buttonMainMenu_Click(object sender, EventArgs e) { this.Hide(); MainMenuForm mainMenuForm = new MainMenuForm(); mainMenuForm.Show(); }
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ı."); } }