Exemplo n.º 1
0
        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!");
            }
        }
Exemplo n.º 2
0
 private void ForgotPasswordLabel_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     LoginLauncher.OnPasswordForgotten(UsernameTextbox.Text);
 }