public Form3(ref baidu ff) { bd = ff; InitializeComponent(); initList(); readreplay(); }
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(); } }
public Form2(ref baidu ff) { bd = ff; InitializeComponent(); }
public Form8(ref baidu ff) { InitializeComponent(); bd = ff; init(); }