Example #1
0
 private void OnExport(string errorMessage)
 {
     if (string.IsNullOrEmpty(errorMessage))
     {
         ExportSuccessful?.Invoke();
     }
     else
     {
         ExportFailed?.Invoke(errorMessage);
     }
 }
 private void UpdateExportStatus(bool succeed)
 {
     _context.Post(_ =>
     {
         if (succeed)
         {
             ExportComplated?.Invoke(this, EventArgs.Empty);
         }
         else
         {
             ExportFailed?.Invoke(this, EventArgs.Empty);
         }
     }, null);
 }