Exemple #1
0
 private void GetAccountInfomation()
 {
     new Task(() =>
     {
         if (AccountStatus.AccInfo == null)
         {
             AccountStatus.AccInfo = AccountStatus.GetAccountInfomation();
         }
         if (AccountStatus.AccInfo.Status == "success")
         {
             Username = AccountStatus.AccInfo.Username;
             Money    = AccountStatus.AccInfo.LeftMoney;
             Overdata = AccountStatus.AccInfo.OverDate.ToString("yyyy-MM-dd");
         }
         else
         {
             Username = AccountStatus.AccInfo.Status;
         }
     }).Start();
 }