private async void Updatetable1() { var r = new Dictionary <string, object>(); r["u-name"] = m_uName; var p = await CrmInvestor.GetNumInStatus(r); if (p.IsOk) { var dl = p.AsDictionary; foreach (var btn in panel2.Controls) { if (btn is Button) { ((Button)btn).Text = string.Format(Convert.ToString(((Button)btn).Tag), dl.GetOrDefault <string>(Commons.NormalNumberStr(((Button)btn).Name))); } } } else { Commons.ShowResultErrorBox(this, p); } }