Smrf.NodeXL.ExcelTemplate.AutoFillWorkbookDialog.tsmClearColumn_Click C# (CSharp) Method

tsmClearColumn_Click() private method

private tsmClearColumn_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
    tsmClearColumn_Click
    (
        object sender,
        EventArgs e
    )
    {
        AssertValid();

        // OnDetailsClick() stored the worksheet name, table name, column name
        // and source column name ComboBox in the menu item's Tag.

        Debug.Assert( this.tsmClearColumn.Tag is Object[] );
        Object [] aoColumnInformation = ( Object[] )this.tsmClearColumn.Tag;
        Debug.Assert(aoColumnInformation.Length == 4);
        Debug.Assert(aoColumnInformation[0] is String);
        Debug.Assert(aoColumnInformation[1] is String);
        Debug.Assert(aoColumnInformation[2] is String);
        Debug.Assert(aoColumnInformation[3] is ComboBox);

        ClearColumn(
            (String)aoColumnInformation[0],
            (String)aoColumnInformation[1],
            (String)aoColumnInformation[2],
            (ComboBox)aoColumnInformation[3] 
            );
    }