コード例 #1
0
 private void btnYeuThich_Click(object sender, EventArgs e)
 {
     lbTienDo.Text          = "Đang yêu thích";
     lbTienDo.Visible       = true;
     ProgressTienDo.Visible = true;
     ProgressTienDo.Value   = 0;
     for (int i = 0; i < idTaiKhoanCamXuc.Count; i++)
     {
         ThuVienLamViecFacebook.DangXuat();
         ThuVienLamViecFacebook.DNKhongLayTT(idTaiKhoanCamXuc[i]);
         ThuVienLamViecFacebook.CamXuc(idpost, 1);
         ProgressTienDo.Value = (int)100 * (i + 1) / idTaiKhoanCamXuc.Count;
     }
     lbTienDo.Text = "Đã thả tim xong!!";
 }
コード例 #2
0
 private void btnPhanNo_Click(object sender, EventArgs e)
 {
     lbTienDo.Text          = "Đang phẫn nộ";
     lbTienDo.Visible       = true;
     ProgressTienDo.Visible = true;
     ProgressTienDo.Value   = 0;
     for (int i = 0; i < idTaiKhoanCamXuc.Count; i++)
     {
         ThuVienLamViecFacebook.DangXuat();
         ThuVienLamViecFacebook.DNKhongLayTT(idTaiKhoanCamXuc[i]);
         ThuVienLamViecFacebook.CamXuc(idpost, 5);
         ProgressTienDo.Value = (int)100 * (i + 1) / idTaiKhoanCamXuc.Count;
     }
     lbTienDo.Text = "Đã phẫn nộ xong!!!!";
 }