/// <summary> /// 登录委托调用 /// </summary> private void Login() { objXmpp = new XMPPClass(this.strUserName, this.strPassword, this.strServer); objXmpp.OnlineStatus += new XMPPClass.EventHandler(objXmpp_OnlineStatus); objXmpp.UserStatus += new XMPPClass.OnlineHandler(objXmpp_ServerStatus); objXmpp.FriendList += new XMPPClass.FriendHandler(objXmpp_FriendList); objXmpp.Messages += new XMPPClass.MessageHandler(objXmpp_Messages); }
private void toolStripButton_Login_Click(object sender, EventArgs e) { XMPPClass objXmpp = new XMPPClass(this.strUserName, this.strPassword, this.strServer); toolStripButton_Login.Enabled = false; }