Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 private void CancelScreeningEdit()
 {
     EditableScreening = null;
     FinishingScreeningEdit?.Invoke(this, EventArgs.Empty);
 }