예제 #1
0
 private void areFieldsValid()
 {
     if (RegexLib.RegexMatcher(RegexLib.IsNameValid, TBName.Text, TBName) &&
         RegexLib.RegexMatcher(RegexLib.IsLocationValid, TBOrt.Text, TBOrt) &&
         RegexLib.RegexMatcher(RegexLib.AreStarsValid, TBSterne.Text, TBSterne) &&
         RegexLib.RegexMatcher(RegexLib.IsManageValid, TBManager.Text, TBManager) &&
         RegexLib.RegexMatcher(RegexLib.IsCountOfRoomsValid, TBAnzahlZimmer.Text, TBAnzahlZimmer) &&
         RegexLib.RegexMatcher(RegexLib.IsDailyPriceValid, TBTagespreis.Text, TBTagespreis) &&
         RegexLib.RegexMatcher(RegexLib.IsTelephonenumberValid, TBTelefon.Text, TBTelefon) &&
         RegexLib.RegexMatcher(RegexLib.IsURLValid, TBWeb.Text, TBWeb))
     {
         validateionState = EValidation.VALID;
     }
     else
     {
         validateionState = EValidation.INVALID;
     }
 }
예제 #2
0
 private void TBEmail_TextChanged(object sender, TextChangedEventArgs e)
 {
     RegexLib.RegexMatcher(RegexLib.IsEmailValid, TBEmail.Text, TBEmail);
     areFieldsValid();
 }
예제 #3
0
 private void TBWeb_TextChanged(object sender, TextChangedEventArgs e)
 {
     RegexLib.RegexMatcher(RegexLib.IsURLValid, TBWeb.Text, TBWeb);
     areFieldsValid();
 }
예제 #4
0
 private void TBTagespreis_TextChanged(object sender, TextChangedEventArgs e)
 {
     RegexLib.RegexMatcher(RegexLib.IsDailyPriceValid, TBTagespreis.Text, TBTagespreis);
     areFieldsValid();
 }
예제 #5
0
 private void TBTelefon_TextChanged(object sender, TextChangedEventArgs e)
 {
     RegexLib.RegexMatcher(RegexLib.IsTelephonenumberValid, TBTelefon.Text, TBTelefon);
     areFieldsValid();
 }
예제 #6
0
 private void TBAnzahlZimmer_TextChanged(object sender, TextChangedEventArgs e)
 {
     RegexLib.RegexMatcher(RegexLib.IsCountOfRoomsValid, TBAnzahlZimmer.Text, TBAnzahlZimmer);
     areFieldsValid();
 }
예제 #7
0
 private void TBManager_TextChanged(object sender, TextChangedEventArgs e)
 {
     RegexLib.RegexMatcher(RegexLib.IsManageValid, TBManager.Text, TBManager);
     areFieldsValid();
 }
예제 #8
0
 private void TBSterne_TextChanged(object sender, TextChangedEventArgs e)
 {
     RegexLib.RegexMatcher(RegexLib.AreStarsValid, TBSterne.Text, TBSterne);
     areFieldsValid();
 }
예제 #9
0
 private void TBOrt_TextChanged(object sender, TextChangedEventArgs e)
 {
     RegexLib.RegexMatcher(RegexLib.IsLocationValid, TBOrt.Text, TBOrt);
     areFieldsValid();
 }
예제 #10
0
 private void TBName_TextChanged(object sender, TextChangedEventArgs e)
 {
     RegexLib.RegexMatcher(RegexLib.IsNameValid, TBName.Text, TBName);
     areFieldsValid();
 }