public void Initialize(ProjectOptionPanel projectOptions) { if (projectOptions == null) { throw new ArgumentNullException("projectOptions"); } this.projectOptions = projectOptions; }
public void Initialize(ProjectOptionPanel projectOptions) { if (projectOptions == null) { throw new ArgumentNullException("projectOptions"); } this.projectOptions = projectOptions; projectOptions.RegisterLoadSaveCallback(this); }
public ProjectProperty(ProjectOptionPanel parentPanel, string propertyName, T defaultValue, PropertyStorageLocations defaultLocation, bool treatPropertyValueAsLiteral) { this.parentPanel = parentPanel; this.propertyName = propertyName; this.defaultValue = defaultValue; this.defaultLocation = defaultLocation; this.treatPropertyValueAsLiteral = treatPropertyValueAsLiteral; this.val = defaultValue; this.location = defaultLocation; }
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 >= Solution.SolutionVersionVS2010; } // 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 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")); }