Exemple #1
0
 public Form3(ref baidu ff)
 {
     bd = ff;
     InitializeComponent();
     initList();
     readreplay();
 }
Exemple #2
0
 public void init(string username, string password, string proxy)
 {
     islogin       = false;
     bd            = new baidu();
     bd.SignEvent += new baidu.SignDelegate(setSignLabel);
     if (!string.IsNullOrEmpty(proxy))
     {
         bd.Proxy = proxy;
     }
     if (!string.IsNullOrEmpty(username))
     {
         textBox1.Text = username;//"*****@*****.**"
     }
     if (!string.IsNullOrEmpty(password))
     {
         textBox2.Text = password;//"zxj654321"
     }
     label1.Text = bd.Init();
     if (bd.ReadCookies(username))
     {
         islogin     = true;
         label1.Text = "cookie登录成功";
         GetLike();
     }
     if (!islogin)
     {
         getLoginCode();
         if (label1.Text.IndexOf("成功") < 0)
         {
             return;
         }
         Login();
         if (!islogin)
         {
             return;
         }
         GetLike();
     }
 }
Exemple #3
0
 public Form2(ref baidu ff)
 {
     bd = ff;
     InitializeComponent();
 }
Exemple #4
0
 public Form8(ref baidu ff)
 {
     InitializeComponent();
     bd = ff;
     init();
 }