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