Ejemplo n.º 1
0
 private void Btn_Confirm(object sender, RoutedEventArgs e)
 {
     ovm.Employe.DateOfBirth = DateTime.Parse(date.ToString());
     if (AddEmployeValidation.Validate(ovm.Employe))
     {
         ovm.AddEmloye();
         OwnerWindow window = new OwnerWindow();
         window.Show();
         Close();
     }
 }
 //Button click executes AddEmploye method.
 private void Btn_Confirm(object sender, RoutedEventArgs e)
 {
     //Validation for Employe properties.
     if (AddEmployeValidation.Validate(mmvm.Employe))
     {
         mmvm.AddEmploye();
         ModifyManagerWindow window = new ModifyManagerWindow();
         window.Show();
         this.Close();
     }
 }