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