/// <summary> /// CAD文件打开时的Toolbar操作 /// </summary> public void CADFileOpen() { var toolbarGroup = toolbarManager.GetToolbarGroupOrNull(CADToolbarNames.CADToolGroup); if (toolbarGroup != null) { winformToolbarViewManager.ClearToolbars(); winformToolbarViewManager.SetToolbarGroupStatus(toolbarGroup, MenuStatus.Available); var bars = toolbarManager.GetToolbarsByGroups(toolbarGroup); winformToolbarViewManager.SetToolbarsStatus(bars, MenuStatus.Available); } }
public void Activated() { winformToolbarViewManager.ClearToolbars(); }