private void mnuFileConnect_Click(object sender, System.EventArgs e) { frmLogin f = new frmLogin(XmppCon); if (f.ShowDialog() == DialogResult.OK) { InitRosterListView(); XmppCon.Open(); } }
private void connectToolStripMenuItem_Click(object sender, EventArgs e) { frmLogin f = new frmLogin(XmppCon); if (f.ShowDialog() == DialogResult.OK) { XmppCon.Open(); // for compression debug statistics // XmppCon.ClientSocket.OnIncomingCompressionDebug += new agsXMPP.net.BaseSocket.OnSocketCompressionDebugHandler(ClientSocket_OnIncomingCompressionDebug); // XmppCon.ClientSocket.OnOutgoingCompressionDebug += new agsXMPP.net.BaseSocket.OnSocketCompressionDebugHandler(ClientSocket_OnOutgoingCompressionDebug); } }