private void Login_Clicked(object sender, EventArgs e) { var username = UsernameTextbox.Text; var password = PasswordTextbox.Text; var success = LoginLauncher.Login(username, password); if (success) { new ApplicationLauncher().Launch(); Closed?.Invoke(this, null); } else { MessageBox.Show("Username or password is incorrect!"); } }
private void ForgotPasswordLabel_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { LoginLauncher.OnPasswordForgotten(UsernameTextbox.Text); }