private void DisplayImportError(SUE_ErrorCode errorCode, string sParam1, string sParam2, string msgDetails) { string msgTemplate; string topic; bool includeDetails; ScriptureUtilsException.GetErrorMsgAndHelpTopic(errorCode, out msgTemplate, out topic, out includeDetails); string message; if (!string.IsNullOrEmpty(sParam1) && !string.IsNullOrEmpty(sParam2)) { message = string.Format(msgTemplate, sParam1, sParam2, msgDetails); } else if (!string.IsNullOrEmpty(sParam1)) { message = string.Format(msgTemplate, sParam1, msgDetails); } else { message = string.Format(msgTemplate, msgDetails); } // TODO-Linux: Help is not implemented in Mono MessageBox.Show(this, message, ScriptureUtilsException.GetResourceString("kstidXmlImportErrorCaption"), MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, 0, m_helpTopicProvider.HelpFile, HelpNavigator.Topic, topic); }
/// ----------------------------------------------------------------------------------- /// <summary> /// Displays the "Unable to Import" message box. /// </summary> /// ----------------------------------------------------------------------------------- private void DisplayImportError(SUE_ErrorCode errorCode, string msgDetails) { string msgTemplate; string topic; bool includeDetails; ScriptureUtilsException.GetErrorMsgAndHelpTopic(errorCode, out msgTemplate, out topic, out includeDetails); MessageBox.Show(this, string.Format(msgTemplate, msgDetails), ScriptureUtilsException.GetResourceString("kstidImportErrorCaption"), MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, 0, FwApp.App.HelpFile, HelpNavigator.Topic, topic); }