public void OnContainerCreated(Ankh.UI.VSContainerForm form) { VSCommandRouting routing = VSCommandRouting.FromForm(form); if (routing != null) { routing.OnHandleCreated(); } }
public void OnContainerCreated(Ankh.UI.VSContainerForm form) { ThreadHelper.ThrowIfNotOnUIThread(); VSCommandRouting routing = VSCommandRouting.FromForm(form); if (routing != null) { routing.OnHandleCreated(); } }
public void AddCommandTarget(Ankh.UI.VSContainerForm form, IOleCommandTarget commandTarget) { VSCommandRouting routing = VSCommandRouting.FromForm(form); if (routing != null) { routing.AddCommandTarget(commandTarget); } else { throw new InvalidOperationException("Command routing not initialized yet"); } }
public void AddWindowPane(Ankh.UI.VSContainerForm form, IVsWindowPane pane) { VSCommandRouting routing = VSCommandRouting.FromForm(form); if (routing != null) { routing.AddWindowPane(pane); } else { throw new InvalidOperationException("Command routing not initialized yet"); } }