private static void OnError(Exception e) { using (ErrorForm errorForm = new ErrorForm(Application.ProductName, e, DebugHelper.Logger, LogsFilePath, Links.URL_ISSUES)) { errorForm.ShowDialog(); } }
public void ShowErrors() { if (IsItemSelected && SelectedItem.Info.Result != null && SelectedItem.Info.Result.IsError) { string errors = SelectedItem.Info.Result.ErrorsToString(); if (!string.IsNullOrEmpty(errors)) { using (ErrorForm form = new ErrorForm(Application.ProductName, "Upload errors", errors, DebugHelper.Logger, Program.LogsFilePath, Links.URL_ISSUES)) { form.ShowDialog(); } } } }
private static void OnError(Exception e) { using (ErrorForm errorForm = new ErrorForm(e, LogsFilePath, Links.URL_ISSUES)) { errorForm.ShowDialog(); } }