Ejemplo n.º 1
0
        /// <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();
        }
Ejemplo n.º 2
0
        /// <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();
        }
Ejemplo n.º 3
0
        /// <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);
            }
        }