예제 #1
0
        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();
        }
예제 #2
0
        void bp_ShowNextBtnEvent(object sender, ShowBtnEventArgs e)
        {
            this.SetNextButtonEnable(e.Show);
            if (sender is SolutionProjectsPage)
            {
                mPageList.Clear();
                mPageList.AddRange(mBackupPageList);
                foreach (ProjectWrapper PW in Param.Solution.Projects)
                {
                    BasePage bp = null;
                    if (PW.IsClrProject)
                    {
                        bp = new ManageFeaturesPage(Param, PW);
                        bp.PageDescription = ManageProjectAndSolutionWizardsStrings.IDS_PAGE_DESCRIPTION_FEATURES + " \"" + PW.Name + "\"";
                        mPageList.Insert(mPageList.Count - 1, bp);
                    }

                    bp = new ManageLibrariesPage(Param, PW);
                    bp.PageDescription = ManageProjectAndSolutionWizardsStrings.IDS_PAGE_DESCRIPTION_LIBRARIES + " for the project \"" + PW.Name + "\"";
                    mPageList.Insert(mPageList.Count - 1, bp);

                }
            }
        }