Example #1
0
		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;
		}
Example #2
0
        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);
        }
Example #3
0
 public override void Run()
 {
     UpgradeViewContent.Show(ProjectService.OpenSolution);
 }