Inheritance: Microsoft.VisualStudio.Shell.ToolWindowPane
Ejemplo n.º 1
0
        internal void SearchContent(BaseToolWindow toolWindow)
        {
            var availableControls = ExtractFromRepository(VSTalkPackage.VSTalkCore.ControlsRepository);
            foreach (var hostedControl in availableControls)
            {
                var window = _package.FindToolWindow(typeof(BaseToolWindow),
                    Math.Abs(hostedControl.GetType().ToString().GetHashCode()),
                    false);

                if (window == toolWindow)
                {
                    toolWindow.SetContent(hostedControl);
                    return;
                }
            }
        }
Ejemplo n.º 2
0
        internal void SearchContent(BaseToolWindow toolWindow)
        {
            var availableControls = ExtractFromRepository(VSTalkPackage.VSTalkCore.ControlsRepository);

            foreach (var hostedControl in availableControls)
            {
                var window = _package.FindToolWindow(typeof(BaseToolWindow),
                                                     Math.Abs(hostedControl.GetType().ToString().GetHashCode()),
                                                     false);

                if (window == toolWindow)
                {
                    toolWindow.SetContent(hostedControl);
                    return;
                }
            }
        }