Пример #1
0
 protected void fireChangesMade()
 {
     if (ChangesMade != null)
     {
         ChangesMade.Invoke(this);
     }
 }
Пример #2
0
 internal void _fireApplyChanges()
 {
     if (ChangesMade != null)
     {
         ChangesMade.Invoke(element);
     }
 }
Пример #3
0
 private void btnConfirm_Click(object sender, RoutedEventArgs e)
 {
     if (type == WindowType.NewEntity)
     {
         //fitnessClass.Discipline = cmbDisciplines.SelectedItem as Discipline;
         //fitnessClass.Instructor = cmbInstructor.SelectedItem as Instructor;
         //fitnessClass.Gym = cmbGym.SelectedItem as Gym;
         fitnessClass = service.AddFitnessClass(fitnessClass);
     }
     else
     {
         fitnessClass = service.EditFitnessClass(fitnessClass);
     }
     this.Close();
     ChangesMade?.Invoke(fitnessClass);
 }