Пример #1
0
 internal static void StartAndNotifyError(this LocalProcessService localProcess, string fileName, string arguments, string errorMessage, ILogger logger, MessageBoxPresenter messageBox)
 {
     try
     {
         localProcess.Start(fileName, arguments);
     }
     catch (Exception ex)
     {
         logger.Error(ex.Message, ex);
         messageBox.ShowError(errorMessage, Core.Application.NameAndVersion);
     }
 }
 public void NotifyOnError(Exception ex)
 {
     _messagePresenter.ShowError(ex);
 }