public NewProjectWizard(SolutionWrapper Solution) { InitializeComponent(); Param.Solution = Solution; Param.OldProject = null; MFProject tmpProj = new MFProject(); Param.NewProject = ProjectWrapper.Wrap <ProjectWrapper>(tmpProj); mPDP = new ProjectDescriptionPage(Param); mPDP.IsCLREvent += new EventHandler <IsCLREventArgs>(mPDP_IsCLREvent); mMFP = new ManageFeaturesPage(Param); mPageList.Add(new ProjectTemplatePage(Param)); mPageList.Add(mPDP); mPageList.Add(mMFP); mPageList.Add(new ManageLibrariesPage(Param)); foreach (BasePage bp in mPageList) { bp.ShowBackBtnEvent += new EventHandler <ShowBtnEventArgs>(bp_ShowBackBtnEvent); bp.ShowNextBtnEvent += new EventHandler <ShowBtnEventArgs>(bp_ShowNextBtnEvent); } this.Initialize(); }
public override void BeforeCloseOnNext() { Params.Solution.Projects.Clear(); foreach (BaseNode BN in _treeView.AllNodes) { ComponentNode CN = BN as ComponentNode; if (CN == null) { continue; } if (!CN.Checked) { continue; } else { string str = @"$(SPOCLIENT)\Solutions\" + Params.Solution.Name + @"\"; ProjectWrapper Template = FindProjectTemplate(CN.TypedContent); MFProject tmpProj = new MFProject(); Template.InnerObject.CopyTo(tmpProj, Params.Solution.Name); if (tmpProj != null) { tmpProj.ProjectPath = str + Path.GetFileName(tmpProj.Directory) + @"\" + Path.GetFileName(tmpProj.ProjectPath); tmpProj.SettingsFile = str + Params.Solution.Name + ".settings"; Params.Solution.Projects.Add(ProjectWrapper.Wrap <ProjectWrapper>(tmpProj)); } } } this.OnShowNextBtn(true); }
public void SetProject(SolutionWrapper Solution, ProjectWrapper Project) { MFProject tmpProj = new MFProject(); Project.InnerObject.CopyTo(tmpProj, Solution.Name); Param.NewProject = ProjectWrapper.Wrap <ProjectWrapper>(tmpProj); Param.OldProject = Project; Param.Solution = Solution; if (Project.IsClrProject) { mPageList.Add(new ManageFeaturesPage(Param)); } mPageList.Add(new ManageLibrariesPage(Param)); //mPageList.Add(new ManageLibrariesPageTest(Solution, Project, NewProject)); this.Initialize(); }
public override void BeforeCloseOnNext() { if (selectedProject != null) { string str = @"$(SPOCLIENT)\Solutions\" + Params.Solution.Name + @"\"; MFProject tmpProj = new MFProject(); selectedProject.InnerObject.CopyTo(tmpProj, Params.Solution.Name); if (tmpProj != null) { tmpProj.ProjectPath = str + Path.GetFileName(tmpProj.Directory) + @"\" + Path.GetFileName(tmpProj.ProjectPath); tmpProj.SettingsFile = str + Params.Solution.Name + ".settings"; } Params.NewProject = ProjectWrapper.Wrap <ProjectWrapper>(tmpProj); } }