public void Initialize (ProjectOptionPanel projectOptions)
		{
			if (projectOptions == null) {
				throw new ArgumentNullException("projectOptions");
			}
			this.projectOptions = projectOptions;
		}
예제 #2
0
		public void Initialize(ProjectOptionPanel projectOptions)
		{
			if (projectOptions == null) {
				throw new ArgumentNullException("projectOptions");
			}
			this.projectOptions = projectOptions;
			projectOptions.RegisterLoadSaveCallback(this);
		}
예제 #3
0
		public void Initialize (ProjectOptionPanel projectOptions)
		{
			if (projectOptions == null) {
				throw new ArgumentNullException("projectOptions");
			}
			this.projectOptions = projectOptions;
			projectOptions.RegisterLoadSaveCallback(this);
			
			
			this.SerializationInfo = new List<KeyItemPair>();
			this.SerializationInfo.Add(new KeyItemPair("Off", StringParser.Parse("${res:Dialog.ProjectOptions.Build.Off}")));
			this.SerializationInfo.Add(new KeyItemPair("On", StringParser.Parse("${res:Dialog.ProjectOptions.Build.On}")));
			this.SerializationInfo.Add(new KeyItemPair("Auto", StringParser.Parse("${res:Dialog.ProjectOptions.Build.Auto}")));
			
			this.TargetCPU = new List<KeyItemPair>();
			supports32BitPreferred = false;
			if (DotnetDetection.IsDotnet45Installed()) {
				var upgradableProject = projectOptions.Project as IUpgradableProject;
				if (upgradableProject != null && upgradableProject.CurrentTargetFramework.IsBasedOn(TargetFramework.Net45))
					supports32BitPreferred = projectOptions.Project.MinimumSolutionVersion >= SolutionFormatVersion.VS2010;
				// Show 32 vs. 64 options even for library projects;
				// it's relevant for web applications.
			}
			if (supports32BitPreferred) {
				this.TargetCPU.Add(new KeyItemPair("AnyCPU32", StringParser.Parse("${res:Dialog.ProjectOptions.Build.TargetCPU.Any32}")));
				this.TargetCPU.Add(new KeyItemPair("AnyCPU64", StringParser.Parse("${res:Dialog.ProjectOptions.Build.TargetCPU.Any64}")));
			} else {
				this.TargetCPU.Add(new KeyItemPair("AnyCPU", StringParser.Parse("${res:Dialog.ProjectOptions.Build.TargetCPU.Any}")));
			}
			this.TargetCPU.Add(new KeyItemPair("x86", StringParser.Parse("${res:Dialog.ProjectOptions.Build.TargetCPU.x86}")));
			this.TargetCPU.Add(new KeyItemPair("x64", StringParser.Parse("${res:Dialog.ProjectOptions.Build.TargetCPU.x64}")));
			this.TargetCPU.Add(new KeyItemPair("Itanium", StringParser.Parse("${res:Dialog.ProjectOptions.Build.TargetCPU.Itanium}")));
			
			this.FileAlign = new List<KeyItemPair>();
			this.FileAlign.Add(new KeyItemPair("512", "512"));
			this.FileAlign.Add(new KeyItemPair("1024", "1024"));
			this.FileAlign.Add(new KeyItemPair("2048", "2048"));
			this.FileAlign.Add(new KeyItemPair("4096", "4096"));
			this.FileAlign.Add(new KeyItemPair("8192", "8192"));
		}
		public ProjectOptionPanelWidget (ProjectOptionPanel parent)
		{
			this.parent = parent;
			this.Build ();
		}
예제 #5
0
        public void Initialize(ProjectOptionPanel projectOptions)
        {
            if (projectOptions == null) {
                throw new ArgumentNullException("projectOptions");
            }
            this.projectOptions = projectOptions;
            projectOptions.RegisterLoadSaveCallback(this);

            this.SerializationInfo = new List<KeyItemPair>();
            this.SerializationInfo.Add(new KeyItemPair("Off", StringParser.Parse("${res:Dialog.ProjectOptions.Build.Off}")));
            this.SerializationInfo.Add(new KeyItemPair("On", StringParser.Parse("${res:Dialog.ProjectOptions.Build.On}")));
            this.SerializationInfo.Add(new KeyItemPair("Auto", StringParser.Parse("${res:Dialog.ProjectOptions.Build.Auto}")));

            this.FileAlign = new List<KeyItemPair>();
            this.FileAlign.Add(new KeyItemPair("512", "512"));
            this.FileAlign.Add(new KeyItemPair("1024", "1024"));
            this.FileAlign.Add(new KeyItemPair("2048", "2048"));
            this.FileAlign.Add(new KeyItemPair("4096", "4096"));
            this.FileAlign.Add(new KeyItemPair("8192", "8192"));
        }