Exemplo n.º 1
0
 private void DaysEx2B_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         int num;
         if (!int.TryParse(DaysExTxtB.Text, out num))
         {
             throw new ArgumentException("it must be a number");
         }
         bl.Change_DaysExpiredGuestRequest(int.Parse(DaysExTxtB.Text));
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Manager Data", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }