ContextMune上下文菜单中,二级菜单获取及状态设置
在使用ContextMune上下文菜单中,能够通过二级菜单来获取及状态设置
//二级菜单获取和状态设置
((ToolStripDropDownItem)(contextmenu_PatrolFunc.Items[1])).DropDownItems[4].Enabled = false; ((ToolStripDropDownItem)(contextmenu_PatrolFunc.Items[1])).DropDownItems[5].Enabled = false; ((ToolStripDropDownItem)(contextmenu_PatrolFunc.Items[1])).DropDownItems[6].Enabled = false; ((ToolStripDropDownItem)(contextmenu_PatrolFunc.Items[1])).DropDownItems[8].Enabled = false;