예제 #1
0
        async public Task RefreshScore()
        {
            await Task.Run(() =>
            {
                var webPost      = new WebPost();
                webPost.UserName = UserName;
                webPost.PassWord = Password;
                this.ScoreList   = webPost.GetAllScore();
            });

            CountVipAvg();
        }
예제 #2
0
        /// <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();
        }