Пример #1
0
        protected override void Run()
        {
            ISplittable splittVertically = IdeApp.Workbench.ActiveDocument.GetContent <ISplittable> ();

            if (splittVertically != null)
            {
                splittVertically.SplitHorizontally();
            }
        }
Пример #2
0
        protected override void Run()
        {
            ISplittable splittUnsplitt = IdeApp.Workbench.ActiveDocument.GetContent <ISplittable> ();

            if (splittUnsplitt != null)
            {
                splittUnsplitt.SwitchWindow();
            }
        }
Пример #3
0
 protected override void Update(CommandInfo info)
 {
     if (IdeApp.Workbench.ActiveDocument != null)
     {
         ISplittable splitt = IdeApp.Workbench.ActiveDocument.GetContent <ISplittable> (true);
         if (splitt != null)
         {
             info.Enabled = splitt.EnableUnsplit;
         }
         else
         {
             info.Enabled = false;
         }
     }
     else
     {
         info.Enabled = false;
     }
 }