Esempio n. 1
0
        protected override void Run()
        {
            ISplittable splittVertically = IdeApp.Workbench.ActiveDocument.GetContent <ISplittable> ();

            if (splittVertically != null)
            {
                splittVertically.SplitHorizontally();
            }
        }
Esempio n. 2
0
        protected override void Run()
        {
            ISplittable splittUnsplitt = IdeApp.Workbench.ActiveDocument.GetContent <ISplittable> ();

            if (splittUnsplitt != null)
            {
                splittUnsplitt.SwitchWindow();
            }
        }
Esempio n. 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;
     }
 }