private async void UpdateTable1() { btnSearch.Enabled = false; var p = new Dictionary <string, object>(); p["datepoint"] = startDate.Value.TruncToStart(); var r = await CrmInvestor.GetNewRegs(p); if (r.IsOk) { this.myGridViewBinding1.BindTo(r); } else { Commons.ShowResultErrorBox(this, r); } btnSearch.Enabled = true; }