Ejemplo n.º 1
0
 private void signInButton_Click(object sender, RoutedEventArgs e)
 {
     using(ServiceCTSClient proxy = new ServiceCTSClient())
     {
         if (proxy.AuthenticateUser(this.loginTextBox.Text, this.passwordTextBox.Text))
         {
             this.parent.UserName = this.loginTextBox.Text;
             this.parent.RegUser();
             this.parent.Show();
             this.Close();
         }
         else
         {
             this.statusLabel.Content = "Login Error";
             this.statusLabel.Background = Brushes.Red;
         }
     }
 }
Ejemplo n.º 2
0
 private void signInButton_Click(object sender, RoutedEventArgs e)
 {
     using (ServiceCTSClient proxy = new ServiceCTSClient())
     {
         if (proxy.AuthenticateUser(this.loginTextBox.Text, this.passwordTextBox.Text))
         {
             this.parent.UserName = this.loginTextBox.Text;
             this.parent.RegUser();
             this.parent.Show();
             this.Close();
         }
         else
         {
             this.statusLabel.Content    = "Login Error";
             this.statusLabel.Background = Brushes.Red;
         }
     }
 }