Inheritance: Microsoft.VisualStudio.Shell.ToolWindowPane
示例#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;
                }
            }
        }
示例#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;
                }
            }
        }