예제 #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);
     }
 }
예제 #2
0
 private void TestUrl(LocalProcessService localProcess, string url, string caption)
 {
     try
     {
         localProcess.Start(url);
     }
     catch (Exception ex)
     {
         Logger.Error(ex.Message, ex);
         string text = String.Format(CultureInfo.CurrentCulture, Properties.Resources.ProcessStartError, caption);
         MessageBox.ShowError(text, Core.Application.NameAndVersion);
     }
 }
예제 #3
0
 public void DescriptionLinkClicked(LocalProcessService localProcess)
 {
     try
     {
         localProcess.Start(Model.DescriptionUrl);
     }
     catch (Exception ex)
     {
         Logger.Error(ex.Message, ex);
         string text = String.Format(CultureInfo.CurrentCulture, Properties.Resources.ProcessStartError, "description");
         MessageBox.ShowError(Form, text, Core.Application.NameAndVersion);
     }
 }