private void regButton_Click(object sender, RoutedEventArgs e) { if (loginTextBox.Text == "" || passwordTextBox.Password == "" || emailTextBox.Text == "") { MessageBox.Show(CheckData()); } else { RegistrationWindowClass.CreateUser(this); MessageBox.Show("Успешно сохранено!"); } }
private void regButton_Click(object sender, RoutedEventArgs e) { RegistrationWindowClass.ShowRegistrationWindow(this); }