//*************************************************************************
    //  Constructor: GroupByVertexAttributeDialog()
    //
    /// <overloads>
    /// Initializes a new instance of the <see
    /// cref="GroupByVertexAttributeDialog" /> class.
    /// </overloads>
    ///
    /// <param name="workbook">
    /// Workbook containing the graph contents.
    /// </param>
    //*************************************************************************

    public GroupByVertexAttributeDialog
    (
        Microsoft.Office.Interop.Excel.Workbook workbook
    )
    {
        InitializeComponent();

        m_oWorkbook = workbook;

        // Instantiate an object that saves and retrieves the user settings for
        // this dialog.  Note that the object automatically saves the settings
        // when the form closes.

        m_oGroupByVertexAttributeDialogUserSettings =
            new GroupByVertexAttributeDialogUserSettings(this);

        if ( ExcelTableUtil.TryGetTable(m_oWorkbook, WorksheetNames.Vertices,
            TableNames.Vertices, out m_oVertexTable) )
        {
            cbxVertexColumnName.PopulateWithTableColumnNames(m_oVertexTable);
        }

        cbxVertexColumnFormat.PopulateWithObjectsAndText(
            ExcelColumnFormat.Other, "Categories",
            ExcelColumnFormat.Number, "Numbers",
            ExcelColumnFormat.Date, "Dates",
            ExcelColumnFormat.Time, "Times",
            ExcelColumnFormat.DateAndTime, "Dates with times"
            );

        DoDataExchange(false);

        AssertValid();
    }
        //*************************************************************************
        //  Constructor: GroupByVertexAttributeDialog()
        //
        /// <overloads>
        /// Initializes a new instance of the <see
        /// cref="GroupByVertexAttributeDialog" /> class.
        /// </overloads>
        ///
        /// <param name="workbook">
        /// Workbook containing the graph contents.
        /// </param>
        //*************************************************************************

        public GroupByVertexAttributeDialog
        (
            Microsoft.Office.Interop.Excel.Workbook workbook
        )
        {
            InitializeComponent();

            m_oWorkbook = workbook;

            // Instantiate an object that saves and retrieves the user settings for
            // this dialog.  Note that the object automatically saves the settings
            // when the form closes.

            m_oGroupByVertexAttributeDialogUserSettings =
                new GroupByVertexAttributeDialogUserSettings(this);

            if (ExcelTableUtil.TryGetTable(m_oWorkbook, WorksheetNames.Vertices,
                                           TableNames.Vertices, out m_oVertexTable))
            {
                cbxVertexColumnName.PopulateWithTableColumnNames(m_oVertexTable);
            }

            cbxVertexColumnFormat.PopulateWithObjectsAndText(
                ExcelColumnFormat.Other, "Categories",
                ExcelColumnFormat.Number, "Numbers",
                ExcelColumnFormat.Date, "Dates",
                ExcelColumnFormat.Time, "Times",
                ExcelColumnFormat.DateAndTime, "Dates with times"
                );

            DoDataExchange(false);

            AssertValid();
        }