protected override void Run() { ISplittable splittVertically = IdeApp.Workbench.ActiveDocument.GetContent <ISplittable> (); if (splittVertically != null) { splittVertically.SplitHorizontally(); } }
protected override void Run() { ISplittable splittUnsplitt = IdeApp.Workbench.ActiveDocument.GetContent <ISplittable> (); if (splittUnsplitt != null) { splittUnsplitt.SwitchWindow(); } }
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; } }