Exemplo n.º 1
0
		/// <summary>Initializes a new instance of the <see cref="FilePath"/> class from an existing <see cref="FilePath"/> instance.</summary>
		/// <param name="path">An existing <see cref="FilePath"/>.</param>
		public FilePath(FilePath path)
		{
			if (path.Path.Length > 0)
			{
				base.Path = path.Path;
				base.FixedPath = path.FixedPath;
			}
		}
Exemplo n.º 2
0
		/// <summary>Initializes a new instance of the <see cref="AssemblySlashDoc"/> class
		/// with the specified Assembly and SlashDoc paths.</summary>
		/// <param name="assemblyFilename">An assembly filename.</param>
		/// <param name="slashDocFilename">A documentation comment XML filename.</param>
		public AssemblySlashDoc(string assemblyFilename, string slashDocFilename)
		{
			this.assembly = new FilePath(assemblyFilename);
			
			if(slashDocFilename.Length>0)
				this.slashDoc = new FilePath(slashDocFilename);
			else
				this.slashDoc = new FilePath();
		}
Exemplo n.º 3
0
		void ResetExtensibilityStylesheet() { _ExtensibilityStylesheet = new FilePath(); }
Exemplo n.º 4
0
		void ResetSlashDoc() { slashDoc = new FilePath(); }
Exemplo n.º 5
0
		void ResetAssembly() { assembly = new FilePath(); }
Exemplo n.º 6
0
		/// <overloads>Initializes a new instance of the <see cref="AssemblySlashDoc"/> class.</overloads>
		/// <summary>Initializes a blank instance of the <see cref="AssemblySlashDoc"/> class.</summary>
		public AssemblySlashDoc()
		{
			this.assembly = new FilePath();
			this.slashDoc = new FilePath();
		}
Exemplo n.º 7
0
		void ResetAboutPageIconPage() { _AboutPageIconPage = new FilePath(); }
Exemplo n.º 8
0
			/// <inheritDoc/>
			public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value)
			{
				if (value is FilePath)
				{
					object result = base.EditValue(context, provider, ((FilePath)value).Path);
					if ((string)result == ((FilePath)value).Path)
					{
						return value;
					}
					else
					{
						if (((string)result).Length > 0)
						{
							FilePath newValue = new FilePath((FilePath)value);
							newValue.Path = (string)result;
							return newValue;
						}
						else
						{
							return new FilePath();
						}
					}
				}
				else
				{
					return base.EditValue(context, provider, value);
				}
			}
Exemplo n.º 9
0
		void ResetNavFailPage() { _NavFailPage = new FilePath(); }
Exemplo n.º 10
0
		void ResetEmptyIndexTermPage() { _EmptyIndexTermPage = new FilePath(); }
Exemplo n.º 11
0
		void ResetAboutPageInfo() { _AboutPageInfo = new FilePath(); }
Exemplo n.º 12
0
		void ResetIntroductionPage() { _IntroductionPage = new FilePath(); }
Exemplo n.º 13
0
		void ResetUseHelpNamespaceMappingFile() { _UseHelpNamespaceMappingFile = new FilePath(); }