private bool IsSelectionValid() { return (RegexLib.Match(RegexLib.IsNameValid, TXTName.Text, TXTName) && RegexLib.Match(RegexLib.IsPasswordValid, TXTPasswordClear.Text, TXTPasswordClear) && DATEExpirationDate.SelectedDate.Value.Date > DateTime.Today); }
private void TXTName_TextChanged(object sender, TextChangedEventArgs e) { category.Name = TXTName.Text; //if (entityStatus == EntityStatus.MODIFIED) //{ if (category.Name == PreName) { TXTName.Background = Brushes.White; } else { RegexLib.Match(RegexLib.IsCategoryValid, TXTName.Text, TXTName); } //} }
private bool IsSelectionValid() { return(RegexLib.Match(RegexLib.IsNameValid, TXTName.Text, TXTName)); }
private void TXTPasswordClear_TextChanged(object sender, TextChangedEventArgs e) { RegexLib.Match(RegexLib.IsPasswordValid, ((TextBox)sender).Text, ((TextBox)sender)); currentPassword.PSW = TXTPasswordClear.Text; }
private void TXTUsername_TextChanged(object sender, TextChangedEventArgs e) { RegexLib.Match(RegexLib.IsNameValid, ((TextBox)sender).Text, ((TextBox)sender)); currentPassword.Login = TXTUsername.Text; }