示例#1
0
        /// <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);
            }
        }
示例#2
0
 public void Activated()
 {
     winformToolbarViewManager.ClearToolbars();
 }