コード例 #1
0
ファイル: ProjectWizardPage.cs プロジェクト: mhusen/Eto
		public ProjectWizardPage(ProjectWizard wizard)
		{
			this.Wizard = wizard;
			var source = new ParameterSource(wizard);
			source.ParameterChanged += (name, value) =>
			{
				if (name == "AppName")
				{
					source.SetParameter("ProjectName", value);
					Validate();
				}
			};
			this.model = new ProjectWizardPageModel(source, null);
			Validate();
		}
コード例 #2
0
        public ProjectWizardPage(ProjectWizard wizard)
        {
            this.Wizard = wizard;
            var source = new ParameterSource(wizard);

            source.ParameterChanged += (name, value) =>
            {
                if (name == "AppName")
                {
                    source.SetParameter("ProjectName", value);
                    Validate();
                }
            };
            this.model = new ProjectWizardPageModel(source, null);
            Validate();
        }