Smrf.NodeXL.ExcelTemplate.TaskPane.msiContextGroups_DropDownOpening C# (CSharp) Method

msiContextGroups_DropDownOpening() private method

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

        GroupCommands eGroupCommandsToEnable =
            GroupManager.GetGroupCommandsToEnable(m_oWorkbook);

        msiContextCollapseSelectedGroups.Enabled =
            GroupManager.GroupCommandsIncludeGroupCommand(
                eGroupCommandsToEnable, GroupCommands.CollapseSelectedGroups);

        msiContextExpandSelectedGroups.Enabled =
            GroupManager.GroupCommandsIncludeGroupCommand(
                eGroupCommandsToEnable, GroupCommands.ExpandSelectedGroups);

        msiContextCollapseAllGroups.Enabled =
            GroupManager.GroupCommandsIncludeGroupCommand(
                eGroupCommandsToEnable, GroupCommands.CollapseAllGroups);

        msiContextExpandAllGroups.Enabled =
            GroupManager.GroupCommandsIncludeGroupCommand(
                eGroupCommandsToEnable, GroupCommands.ExpandAllGroups);

        msiContextSelectGroupsWithSelectedVertices.Enabled =
            GroupManager.GroupCommandsIncludeGroupCommand(
                eGroupCommandsToEnable,
                GroupCommands.SelectGroupsWithSelectedVertices);

        msiContextSelectAllGroups.Enabled =
            GroupManager.GroupCommandsIncludeGroupCommand(
                eGroupCommandsToEnable, GroupCommands.SelectAllGroups);

        msiContextAddSelectedVerticesToGroup.Enabled =
            GroupManager.GroupCommandsIncludeGroupCommand(
                eGroupCommandsToEnable,
                GroupCommands.AddSelectedVerticesToGroup);

        msiContextRemoveSelectedVerticesFromGroups.Enabled =
            GroupManager.GroupCommandsIncludeGroupCommand(
                eGroupCommandsToEnable,
                GroupCommands.RemoveSelectedVerticesFromGroups);

        msiContextRemoveSelectedGroups.Enabled =
            GroupManager.GroupCommandsIncludeGroupCommand(
                eGroupCommandsToEnable, GroupCommands.RemoveSelectedGroups);

        msiContextRemoveAllGroups.Enabled =
            GroupManager.GroupCommandsIncludeGroupCommand(
                eGroupCommandsToEnable, GroupCommands.RemoveAllGroups);
    }
TaskPane