public void get_chengjiu_list() { Dictionary<string, object> parameters = new Dictionary<string, object>(); parameters.Add("username", "8785169"); PostClient proxy = new PostClient(parameters); proxy.DownloadStringCompleted += (sender, e) => { if (e.Error == null) { JObject userobj = JObject.Parse(e.Result); JArray userdata_info = (JArray)userobj["detail"]; my_chengjiu_detile a = new my_chengjiu_detile() { achiname = userdata_info[0]["achiname"].Value<string>(), amount = userdata_info[0]["amount"].Value<string>(), outline = "折翼天使" }; detail.Add(a); listbox_chengjiu.ItemsSource = detail; } }; proxy.DownloadStringAsync(new Uri("http://cxds.sysu.me/user/achievement", UriKind.Absolute)); }
public void check() { if (App.send_mess == "我去华工了") { my_chengjiu_detile a = new my_chengjiu_detile() { outline = "到达华工" }; detail.Add(a); } }