async public Task RefreshScore() { await Task.Run(() => { var webPost = new WebPost(); webPost.UserName = UserName; webPost.PassWord = Password; this.ScoreList = webPost.GetAllScore(); }); CountVipAvg(); }
/// <summary> /// 获取学位课绩点 /// </summary> async public Task GetVipAvg() { if (VIPAvg != 0) { return; } await Task.Run(() => { var webPost = new WebPost(); webPost.UserName = UserName; webPost.PassWord = Password; this.ScoreList = webPost.GetAllScore(); }); await Task.Run(() => { var webPost = new WebPost(); webPost.UserName = UserName; webPost.PassWord = Password; this.VIPClassList = webPost.GetAllVIP(); }); CountVipAvg(); }