Esempio 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);
		}
Esempio 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);
		}
Esempio n. 3
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 = "";
		}
Esempio n. 4
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 = "";
		}