internal static void ShowErrorDialog(IUIService uiService, string errorString, Control dataGridView) { if (uiService != null) { uiService.ShowError(errorString); } else { RTLAwareMessageBox.Show(dataGridView, errorString, null, MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1, 0); } }
internal static void ShowErrorDialog(IUIService uiService, Exception ex, Control dataGridView) { if (uiService != null) { uiService.ShowError(ex); } else { string message = ex.Message; if ((message == null) || (message.Length == 0)) { message = ex.ToString(); } RTLAwareMessageBox.Show(dataGridView, message, null, MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1, 0); } }