private void cmdPubSub_Click(object sender, System.EventArgs e) { var frm = new FrmPubSub(xmppClient); frm.Show(); }