Exemplo n.º 1
0
		/// <summary>Initializes a new instance of the <see cref="Project"/> class.</summary>
		public Project()
		{
			_IsDirty = false;
			_probePath = new ArrayList();
			_referencePaths = new ReferencePathCollection();
			_namespaces = new Namespaces();
			_namespaces.ContentsChanged += new EventHandler(ContentsChanged);
		}
Exemplo n.º 2
0
		/// <summary>Initializes a new instance of the <see cref="Project"/> class.</summary>
		public Project()
		{
			_IsDirty = false;
			_referencePaths = new ReferencePathCollection();
			_namespaces = new Namespaces();
			_namespaces.ContentsChanged += new EventHandler(ContentsChanged);

			_AssemblySlashDocs = new AssemblySlashDocCollection();
			_AssemblySlashDocs.Cleared += new EventHandler(_AssemblySlashDocs_Cleared);
			_AssemblySlashDocs.ItemAdded += new AssemblySlashDocEventHandler(_AssemblySlashDocs_ItemAdded);
			_AssemblySlashDocs.ItemRemoved += new AssemblySlashDocEventHandler(_AssemblySlashDocs_ItemRemoved);
		}
Exemplo n.º 3
0
			private void RemoveBlankPaths(ReferencePathCollection coll)
			{
				if (coll == null) return;

				for (int i = 0; i < coll.Count; i++)
				{
					ReferencePath refPath = coll[i];
					if (refPath.Path.Length == 0)
					{
						coll.RemoveAt(i);
						i--;
					}
				}
			}
Exemplo n.º 4
0
			/// <inheritDoc/>
			public ReferencePathCollectionPropertyDescriptor(ReferencePathCollection coll, int idx) : 
				base("Path #" + (idx + 1).ToString(), null)
			{
				this.collection = coll;
				this.index = idx;
			} 
Exemplo n.º 5
0
		/// <summary>Clears the project.</summary>
		public void Clear()
		{
			_AssemblySlashDocs.Clear();
			if (_namespaces != null) _namespaces = new Namespaces();
			if (_referencePaths != null) _referencePaths = new ReferencePathCollection();

			// cache the current active info object
			IDocumenterInfo currentInfo = null;
			if ( this._currentConfig != null )
				currentInfo = _currentConfig.DocumenterInfo;

			// create a new configs collection populated with new configs for each type
			Hashtable newConfigs = new Hashtable();
			foreach ( IDocumenterConfig config in _configs.Values )
				newConfigs.Add( config.DocumenterInfo.Name, config.DocumenterInfo.CreateConfig( this ) );

			_configs = newConfigs;

			// reset the active config
			if ( currentInfo != null )
				_currentConfig = _configs[currentInfo.Name] as IDocumenterConfig;

			IsDirty = false;
			ProjectFile = "";
		}
Exemplo n.º 6
0
		/// <summary>Clears the project.</summary>
		public void Clear()
		{
			_AssemblySlashDocs.Clear();
			if (_namespaces != null) _namespaces = new Namespaces();
			if (_referencePaths != null) _referencePaths = new ReferencePathCollection();

			foreach (IDocumenter documenter in Documenters)
			{
				documenter.Clear();
				documenter.Config.SetProject(this);
			}

			IsDirty = false;
			ProjectFile = "";
		}