Пример #1
0
 private bool rule()
 {
     try
     {
         if (StuCH.IsChecked == true)
         {
             return(Extention.STUCode(int.Parse(PassBox.Text)));
         }
         else if (TeCH.IsChecked == true)
         {
             return(true);
         }
         else
         {
             return(Extention.Melicode(PassBox.Text));
         }
     }
     catch
     {
         MessageBox.Show("Student ID is a number that start with \'9\' or National ID contain ten numbers .", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
         return(false);
     }
 }