Exemple #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;
			}
		}
Exemple #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();
		}
		void ResetExtensibilityStylesheet() { _ExtensibilityStylesheet = new FilePath(); }
Exemple #4
0
		void ResetSlashDoc() { slashDoc = new FilePath(); }
Exemple #5
0
		void ResetAssembly() { assembly = new FilePath(); }
Exemple #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();
		}
		void ResetAboutPageIconPage() { _AboutPageIconPage = new FilePath(); }
Exemple #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);
				}
			}
		void ResetNavFailPage() { _NavFailPage = new FilePath(); }
		void ResetEmptyIndexTermPage() { _EmptyIndexTermPage = new FilePath(); }
		void ResetAboutPageInfo() { _AboutPageInfo = new FilePath(); }
		void ResetIntroductionPage() { _IntroductionPage = new FilePath(); }
		void ResetUseHelpNamespaceMappingFile() { _UseHelpNamespaceMappingFile = new FilePath(); }