public event ChangedHandler ClasspathChanged; // inner operation changed the classpath public Project(string path, CompilerOptions compilerOptions) { this.path = path; this.compilerOptions = compilerOptions; TestMovieBehavior = TestMovieBehavior.Default; classpaths = new PathCollection(); compileTargets = new PathCollection(); hiddenPaths = new HiddenPathCollection(); libraryAssets = new AssetCollection(this); InputPath = ""; OutputPath = ""; PreBuildEvent = ""; PostBuildEvent = ""; }
private void UpdateCompilerOptions() { var readOnly = IsExternalConfiguration(); if (readOnly == isPropertyGridReadOnly && propertyGrid.SelectedObject != null) return; isPropertyGridReadOnly = readOnly; // clone the compiler options object because the PropertyGrid modifies its // object directly optionsCopy = project.CompilerOptions.Clone(); if (isPropertyGridReadOnly) TypeDescriptor.AddAttributes(optionsCopy, new Attribute[] { new ReadOnlyAttribute(true) }); propertyGrid.SelectedObject = optionsCopy; propertiesChanged = false; }
private void InitOptionsTab() { // clone the compiler options object because the PropertyGrid modifies its // object directly optionsCopy = project.CompilerOptions.Clone(); propertyGrid.SelectedObject = optionsCopy; propertiesChanged = false; }