Exemplo n.º 1
0
        public async void Show(FrameworkElement KeywordItem, String Keyword)
        {
            STRBDmask.Begin();
            TXTBLKkw.Text = Keyword;
            _kwItem       = KeywordItem;
            _kwItemVisual = _kwItem.GetVisual();
            Visibility    = Visibility.Visible;
            await ToggleKwItemAnimationAsync(true);

            PRGRS.ProgressStart();
            await InnerShow(Keyword);

            PRGRS.ProgressEnd();
        }
Exemplo n.º 2
0
        public async void LoadDescription()
        {
            try
            {
                PRGRS.ProgressStart();
                if (getAppr != null)
                {
                    List <Paragraph> list = getAppr(IDname);
                    foreach (var p in list)
                    {
                        if (p != null)
                        {
                            RCHTXTappr.Blocks.Add(p);
                        }
                    }
                }
                String json = "";
                json += "{\"name\":\"";
                json += IDname;
                json += "\"}";
                var result = await WebConnection.Connect_by_json("http://127.0.0.1:8000/doc", json);

                if (!result.name.Equals("200"))
                {
                    return;
                }
                var        ret_json = result.value;
                JsonObject j        = JsonObject.Parse(ret_json);
                bool       found    = j.GetNamedBoolean("found");
                if (found)
                {
                    String description = j.GetNamedString("description");
                    String url         = j.GetNamedString("url");
                    HYPERdetail.NavigateUri = new Uri(url);
                    TXTBLKdescription.Text  = description;
                }
                PRGRS.ProgressEnd();
            }
            catch
            {
                PRGRS.ProgressEnd();
                return;
            }
        }
Exemplo n.º 3
0
        private async void WEBpreprocess()
        {
            try
            {
                PRGRS.ProgressStart();
                HYPERsource.NavigateUri = new Uri("https://stackoverflow.com/questions/" + info.ID);
                Parameters result = await WebConnection.ConnctWithGet("https://stackoverflow.com/questions/" + info.ID);

                if (!result.name.Equals("200"))
                {
                    return;
                }
                html = HandleHTML(result.value);
                WEBpost.NavigateToString(html);
                PRGRS.ProgressEnd();
            }
            catch
            {
                return;
            }
            finally
            {
            }
        }
Exemplo n.º 4
0
 private void DataLoaded()
 {
     PRGRS.ProgressEnd();
 }
Exemplo n.º 5
0
 private void DataLoading()
 {
     PRGRS.ProgressStart();
 }