private void button2_Click(object sender, EventArgs e) { var qq = new QQ_Base(); qq.AnylizeCookie(this.richTextBox1.Text); qq.GetMyInfo(); if (!string.IsNullOrWhiteSpace(qq.User.QQNum)) { SetInfo(qq.User.QQNum + "登录成功"); var form = new GlobalForm(); form.InitQQ(qq); form.Show(); BindToParent(form, this); this.Hide(); } else { SetInfo(qq.User.QQNum + "不正确的Coocie"); } }
public void InitQQ(QQ_Base qq) { _qq = qq; this.Text = string.Format("{0}[{1}]", _qq.User.QQName, _qq.User.QQNum); }