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; } } }
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; } } }