Exemplo n.º 1
0
        void HideTab()
        {
            Autodesk.AutoCAD.ApplicationServices.Application.Idle -= new EventHandler(OnIdle);

            if (_ctxTab != null)
            {
                Autodesk.Windows.RibbonControl ribbonCtrl = Autodesk.Windows.ComponentManager.Ribbon;

                ribbonCtrl.HideContextualTab(_ctxTab);

                _ctxTab.IsVisible = false;

                _ctxTab = null;
            }
        }