public static UpgradeViewContent Show(ISolution solution) { foreach (UpgradeViewContent vc in SD.Workbench.ViewContentCollection.OfType<UpgradeViewContent>()) { if (vc.Solution == solution) { vc.WorkbenchWindow.SelectWindow(); return vc; } } var newVC = new UpgradeViewContent(solution); SD.Workbench.ShowView(newVC); return newVC; }
public static UpgradeViewContent Show(Solution solution) { foreach (UpgradeViewContent vc in WorkbenchSingleton.Workbench.ViewContentCollection.OfType <UpgradeViewContent>()) { if (vc.Solution == solution) { vc.WorkbenchWindow.SelectWindow(); return(vc); } } var newVC = new UpgradeViewContent(solution); WorkbenchSingleton.Workbench.ShowView(newVC); return(newVC); }
public override void Run() { UpgradeViewContent.Show(ProjectService.OpenSolution); }