/// <summary> /// Shows the form. /// </summary> /// <param name="errorId">The error id.</param> public static void ShowForm(int errorId) { // Create a instance for ErrorEngine Form and Show. Application.UseWaitCursor = false; ErrorEngine errorEngine = new ErrorEngine(errorId); errorEngine.ShowDialog(); }
/// <summary> /// Shows the form. /// </summary> /// <param name="errorId">The error id.</param> /// <param name="errorMessage">The error message.</param> public static void ShowForm(int errorId, string errorMessage) { Application.UseWaitCursor = false; //Create a instance for ErrorEngine Form and Show. ErrorEngine errorEngine = new ErrorEngine(errorId, errorMessage); errorEngine.ShowDialog(); }
/// <summary> /// Shows the form. /// </summary> /// <param name="formId">The form id.</param> public static void Show(string formName, string formId) { //// Create a instance for ErrorEngine Form and Show. //HelpEngine helpEngine = new HelpEngine(formId); HelpEngine helpEngine = new HelpEngine(formName, formId); if (helpEngine.LoadHelpDocuments(true)) { helpEngine.ShowDialog(); } else { ErrorEngine.ShowForm((int)TerraScanCommon.ErrorEngineType.Nine); } }