Smrf.NodeXL.ExcelTemplate.GroupByVertexAttributeDialog.GroupByVertexAttributeDialog C# (CSharp) Method

GroupByVertexAttributeDialog() public method

public GroupByVertexAttributeDialog ( Microsoft workbook ) : System
workbook Microsoft /// Workbook containing the graph contents. ///
return System
    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();
    }