Exemplo n.º 1
0
 private void Clear()
 {
     BoxLogin.Clear();
     BoxPassword.Clear();
     BoxName.Clear();
     BoxPatronymic.Clear();
     BoxSurname.Clear();
     BoxAddress.Clear();
 }
Exemplo n.º 2
0
 private void Clear()
 {
     BoxLogin.Clear();
     BoxPassword.Clear();
     BoxName.Clear();
     BoxPatronymic.Clear();
     BoxSurname.Clear();
     ComboBoxRole.SelectedIndex = -1;
 }
Exemplo n.º 3
0
 private void Btn_Register_Click(object sender, RoutedEventArgs e)
 {
     BoxPassword.Text  = BoxPassword.Text.Trim();
     BoxUser_Name.Text = BoxUser_Name.Text.Trim();
     if (BoxUser_Name.Text.Contains(' ') || BoxPassword.Text.Contains(' '))
     {
         MessageBox.Show("Fields cannot contain any spaces");
     }
     else
     {
         StoreUserCredentials newUser = new StoreUserCredentials(BoxUser_Name.Text, BoxPassword.Text);
         BoxPassword.Clear();
         BoxUser_Name.Clear();
     }
 }