示例#1
0
        private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
        {
            url = NavigationContext.QueryString["url"].ToString();
            url = LocalFileCache.ContentDecoder(url);
            string text = LocalFileCache.LoadNote(url);

//            BookmarkItem item = App.deliciousApi.LoadLinkItemRecord(url);
//            string text = item.extended;
            if (text == null || text.Length == 0)
            {
                text = url + "\n\n";
            }
            Txt_NoteContent.Text = text;
            Txt_NoteContent.Focus();
        }
示例#2
0
        private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
        {
            Btn_PrePage.IsEnabled    = CanGoBack;
            Btn_NextPage.IsEnabled   = CanGoForward;
            Btn_Add.IsEnabled        = IsNotAdded;
            AddBookmark_Popup.IsOpen = false;
            IsRefresh = false;

            url  = NavigationContext.QueryString["url"].ToString();
            url  = LocalFileCache.ContentDecoder(url);
            item = App.localFileCache.GetBookmarkItem(url);
            if (!String.IsNullOrEmpty(item.cacheHtml))
            {
                webBrowser.NavigateToString(item.cacheHtml);
            }
            else
            {
                //url = baiduUrl + url;
                webBrowser.Navigate(new Uri(url, UriKind.Absolute));
            }
            App.localFileCache.UpdateRecentIndex(item);
        }