Esempio n. 1
0
        OnWorkbookFormatException
        (
            WorkbookFormatException workbookFormatException
        )
        {
            Debug.Assert(workbookFormatException != null);

            Range oRangeToSelect = workbookFormatException.RangeToSelect;

            if (oRangeToSelect != null)
            {
                ExcelUtil.SelectRange(oRangeToSelect);
            }

            FormUtil.ShowWarning(workbookFormatException.Message);
        }
Esempio n. 2
0
        //*************************************************************************
        //  Method: OnWorkbookFormatException()
        //
        /// <summary>
        /// Handles a <see cref="WorkbookFormatException" />.
        /// </summary>
        ///
        /// <param name="workbookFormatException">
        /// The exception that was caught.
        /// </param>
        //*************************************************************************
        public static void OnWorkbookFormatException(
            WorkbookFormatException workbookFormatException
            )
        {
            Debug.Assert(workbookFormatException != null);

            Range oRangeToSelect = workbookFormatException.RangeToSelect;

            if (oRangeToSelect != null)
            {
            ExcelUtil.SelectRange(oRangeToSelect);
            }

            FormUtil.ShowWarning(workbookFormatException.Message);
        }