Ejemplo n.º 1
0
 private NavigatorUrl TransformNavigatorUrl( NavigatorUrl url )
 {
     var transformedUrl = LookupInternal( url.UrlString );
     var transformedForm = TransformFormular( url.Formular );
     return new NavigatorUrl( url.UrlType, transformedUrl, transformedForm );
 }
Ejemplo n.º 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 );
        }