Exemple #1
0
 private void btnGodkend_Click(object sender, RoutedEventArgs e)
 {
     if (type == WindowType.EditEntity)
     {
         instructor = service.UpdateInstuctor(instructor);
         this.Close();
     }
     else
     {
         instructor = service.AddInstructor(instructor);
         this.Close();
         //Er der subscribers?
         InstructorChangesMade?.Invoke(instructor);
     }
 }