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(Resources.UploadInfoManager_ShowErrors_Upload_errors, errors, Program.LogsFilePath, Links.URL_ISSUES, false)) { form.ShowDialog(); } } } }
private static void OnError(Exception e) { using (ErrorForm errorForm = new ErrorForm(e, LogsFilePath, Links.URL_ISSUES)) { errorForm.ShowDialog(); } }
private static void OnError(Exception e) { using (ErrorForm errorForm = new ErrorForm(e.Message, $"{e}\r\n\r\n{TitleLong}", LogsFilePath, Links.URL_ISSUES)) { errorForm.ShowDialog(); } }