Пример #1
0
 private async void ChangeLoginAndPassButtonClick(object sender, RoutedEventArgs e)
 {
     if (!string.IsNullOrEmpty(NewLoginBox.Text) && !string.IsNullOrEmpty(NewPassBox.Text) && !string.IsNullOrEmpty(NewPassTwinBox.Text))
     {
         if (string.Equals(NewPassBox.Text, NewPassTwinBox.Text))
         {
             Credentials.NewLogin    = NewLoginBox.Text;
             Credentials.NewPassword = NewPassBox.Text;
             await _primeWindowVm.ChangeLoginAndPasswordCommand(NewLoginBox.Text, NewPassBox.Text);
         }
     }
 }