Exemplo n.º 1
0
		/// <summary>
		/// Creates a new instance of the HtmlHelpFile class
		/// </summary>
		/// <param name="f">The path to the file</param>
		public HtmlHelpFile( FileInfo f )
		{
			try 
			{
				Debug.Assert( f != null );
				Debug.Assert( f.Exists );

				m_file = f;
				m_doc = GetHtmlDocument( f );
				m_dataIsland = GetXmlDataIsland();
				m_TopicType = GetTopicType();
			}
			catch ( Exception e )
			{
				throw new ArgumentException( string.Format( "Could not open {0}", f.Name ), "f", e );
			}
		}
Exemplo n.º 2
0
 public HelpTopicAttribute(HelpTopicType topicType, string title)
 {
     TopicType = topicType;
     Title     = title;
 }