private void GetData(string url, string id)
 {
     HttpHelper ht = new HttpHelper();
     Dictionary<string, string> dic = new Dictionary<string, string>();
     dic.Add("id", id);
     ht.CreatePostHttpResponse(url, dic);
     ht.FileWatchEvent += ht_FileWatchEvent;
 }
Exemplo n.º 2
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            IDictionary<string, string> parameters = this.NavigationContext.QueryString;
            base.OnNavigatedTo(e);
            if (parameters.ContainsKey("id"))
            {
                idStr = (parameters["id"] as string);

            }
            if (parameters.ContainsKey("type"))
            {
                type = (parameters["type"] as string);

            }
            HttpHelper ht = new HttpHelper();
            string url = StaticURLHelper.GetURL(type).Show;
            Dictionary<string, string> dic = new Dictionary<string, string>();
            dic.Add("id", idStr);
            ht.CreatePostHttpResponse(url, dic);
            ht.FileWatchEvent += Ht_FileWatchEvent;

        }
Exemplo n.º 3
0
        // 构造函数
        public MainPage()
        {
            InitializeComponent();
            this.TBVersion.Text = (Application.Current as App).V;
            // 用于本地化 ApplicationBar 的示例代码
            //BuildLocalizedApplicationBar();
            int page = 1;
            string url1 = StaticURLHelper.InfoList;
            string url2 = StaticURLHelper.LoreList;
            HttpHelper ht = new HttpHelper();
            Dictionary<string, string> dic = new Dictionary<string, string>();
            dic.Add("page", page.ToString());
            ht.CreatePostHttpResponse(url1, dic);
            ht.FileWatchEvent += Ht_FileWatchEvent;

            HttpHelper ht2 = new HttpHelper();
            Dictionary<string, string> dic2 = new Dictionary<string, string>();
            dic2.Add("page", page.ToString());
            ht2.CreatePostHttpResponse(url2, dic2);
            ht2.FileWatchEvent += Ht_FileWatchEvent2;

        }
 private void GetJSON(string url, Dictionary<string, string> dic)
 {
     HttpHelper ht = new HttpHelper();
     ht.CreatePostHttpResponse(url, dic);
     ht.FileWatchEvent += Ht_FileWatchEvent;
 }