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; } } }