//Button click executes AddManager method. private void Btn_Confirm(object sender, RoutedEventArgs e) { //Validation for Manager properties. if (AddManagerValidation.Validate(amvm.Manager)) { amvm.AddManager(); } }
private void Btn_Confirm(object sender, RoutedEventArgs e) { ovm.Manager.DateOfBirth = DateTime.Parse(date.ToString()); if (AddManagerValidation.Validate(ovm.Manager)) { ovm.AddManager(); OwnerWindow window = new OwnerWindow(); window.Show(); Close(); } }