protected void fireChangesMade() { if (ChangesMade != null) { ChangesMade.Invoke(this); } }
internal void _fireApplyChanges() { if (ChangesMade != null) { ChangesMade.Invoke(element); } }
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); }