示例#1
0
 private NavigatorUrl TransformNavigatorUrl( NavigatorUrl url )
 {
     var transformedUrl = LookupInternal( url.UrlString );
     var transformedForm = TransformFormular( url.Formular );
     return new NavigatorUrl( url.UrlType, transformedUrl, transformedForm );
 }
示例#2
0
        private IDocument Navigate( DocumentType docType, NavigatorUrl url )
        {
            if ( docType == DocumentType.Html )
            {
                return new HtmlDocumentHandle( LoadDocument( url.UrlString ) );
            }
            else if ( docType == DocumentType.Text )
            {
                return new TextDocument( DownloadFile( url.UrlString ) );
            }

            throw new NotSupportedException( "DocumentType: " + docType );
        }