Exemple #1
0
 public bool AddGcentAccount(TaiKhoan taiKhoan)
 {
     if (!Login(taiKhoan.TenDangNhap, taiKhoan.MatKhau1)) return false;
     Content = GetContent("http://taikhoan.muhaiphong.net/CV/Load_Content.php", "Page=Right_Content");
     var list = GetContentXpath(Content, "//*[@class='info_acc']/div/span");
     if (list == null) return false;
     taiKhoan.GCent = int.Parse(list[0]);
     return true;
 }
Exemple #2
0
 public void AddCharactor(TaiKhoan taiKhoan)
 {
     if (!Login(taiKhoan.TenDangNhap, taiKhoan.MatKhau1)) return;
     string content = GetContent("http://taikhoan.muhaiphong.net/CV/Load_Content.php", "Page=Right_Content");
     var list = GetContentXpath(content, "//*[@class='char-select']/li/a");
     if (list == null) return;
     for (int i = 0; i < list.Count; i++)
     {
         GetContent("http://taikhoan.muhaiphong.net/CV/Load_Content.php",
             "Page=Character_Manager%2FCharacterChoice&CharacterID="+i);
         string contentcharactor = GetContent("http://taikhoan.muhaiphong.net/CV/Load_Content.php",
             "Page=Character_Manager/List_Act");
         var listch = GetContentXpath(contentcharactor, "//*[@class='col2']/li/span");
         taiKhoan.NhanVats.Add(new NhanVat()
         {
             TenNhanVat = list[i],
             Relife = int.Parse(listch[0].Split('/')[0])
         });
     }
 }
Exemple #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the TaiKhoans EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTaiKhoans(TaiKhoan taiKhoan)
 {
     base.AddObject("TaiKhoans", taiKhoan);
 }
Exemple #4
0
 /// <summary>
 /// Create a new TaiKhoan object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 public static TaiKhoan CreateTaiKhoan(global::System.Int32 id)
 {
     TaiKhoan taiKhoan = new TaiKhoan();
     taiKhoan.ID = id;
     return taiKhoan;
 }