Beispiel #1
0
        // ********************************************************************
        /// <summary>
        /// Show a dialog to choose the error mode
        /// </summary>
        /// <returns>Returns the user's selection (ie OK or cancel)</returns>
        public static DialogResult ChooseErrorMode()
        {
            SelectErrorModeForm fm = new SelectErrorModeForm();

            fm.ErrorMode = ErrorMode;
            return(fm.ShowDialog());
        }
Beispiel #2
0
        // ********************************************************************
        /// <summary>
        /// Show a dialog to choose the error mode
        /// </summary>
        /// <param name="errmode">reference to an error mode variable</param>
        /// <returns>Returns the user's selection (ie OK or cancel)</returns>
        public static DialogResult ChooseErrorMode(ref int errmode)
        {
            ErrorModeType       x  = (ErrorModeType)errmode;
            SelectErrorModeForm fm = new SelectErrorModeForm();

            fm.ErrorMode = x;
            DialogResult t = fm.ShowDialog();

            x       = fm.ErrorMode;
            errmode = (int)x;
            return(t);
        }