/// <summary> /// 已办列表的数据量较大,自动刷新不是很划算 /// </summary> /// <param name="isFlush"></param> private void BindSignedData(bool isFlush) { /// 当且仅当缓存数据UserHelpwer为空,或者用户期望强制刷新时,强制进行数据获取 if (UserHelper.DoneList == null || isFlush == true) { List <SHDJContract> signedList = _sc.QuerySignedContract(UserHelper.UserInfo.Id); //List<SHDJContract> signedList = null; //while (signedList == null) //{ // signedList = await _sc.QuerySignedContract(UserHelper.UserInfo.Id); //} this.DoneListView.AutoGenerateColumns = false; this.DoneListView.DataSource = signedList; UserHelper.DoneList = signedList; } else { this.DoneListView.AutoGenerateColumns = false; this.DoneListView.DataSource = UserHelper.DoneList; } }