コード例 #1
0
ファイル: Project.cs プロジェクト: heon21st/flashdevelop
        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 = "";
		}
コード例 #2
0
        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;
        }
コード例 #3
0
 private void InitOptionsTab()
 {
     // clone the compiler options object because the PropertyGrid modifies its
     // object directly
     optionsCopy = project.CompilerOptions.Clone();
     propertyGrid.SelectedObject = optionsCopy;
     propertiesChanged = false;
 }