Exemplo n.º 1
0
        public void OnContainerCreated(Ankh.UI.VSContainerForm form)
        {
            VSCommandRouting routing = VSCommandRouting.FromForm(form);

            if (routing != null)
            {
                routing.OnHandleCreated();
            }
        }
Exemplo n.º 2
0
        public void OnContainerCreated(Ankh.UI.VSContainerForm form)
        {
            ThreadHelper.ThrowIfNotOnUIThread();

            VSCommandRouting routing = VSCommandRouting.FromForm(form);

            if (routing != null)
            {
                routing.OnHandleCreated();
            }
        }
Exemplo n.º 3
0
        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");
            }
        }
Exemplo n.º 4
0
        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");
            }
        }