Пример #1
0
 private async void SaveScreeningEdit()
 {
     try
     {
         if (!EditableScreening.IsValid())
         {
             OnMessageApplication("Minden mezőt ki kell tölteni.");
             return;
         }
         SelectedScreening.CopyFrom(EditableScreening);
         await _service.UpdateScreeningAsync((ScreeningDto)SelectedScreening);
     }
     catch (Exception ex) when(ex is NetworkException || ex is HttpRequestException)
     {
         OnMessageApplication($"Unexpected error occured! ({ex.Message})");
     }
     FinishingScreeningEdit?.Invoke(this, EventArgs.Empty);
 }
Пример #2
0
 //Edit
 private void StartEditScreening()
 {
     EditableScreening = SelectedScreening.ShallowClone();
     StartingScreeningEdit?.Invoke(this, EventArgs.Empty);
 }