示例#1
0
        public FrmLogin()
        {
            InitializeComponent();
            InitSettings();

            FrmLogin.Instance = this;
            FrmLogin.FrmMain = new FrmMain();
            FrmLogin.FrmMain.MdiParent = FrmParent.Instance;

            this.xmppClient.OnBeforeSasl += new EventHandler<Matrix.Xmpp.Sasl.SaslEventArgs>(xmppClient_OnBeforeSasl);
            this.xmppClient.OnAuthError += new EventHandler<Matrix.Xmpp.Sasl.SaslEventArgs>(xmppClient_OnAuthError);
            this.xmppClient.OnLogin +=new EventHandler<Matrix.EventArgs>(xmppClient_OnLogin);
        }
示例#2
0
 void FrmParent_Load(object sender, EventArgs e)
 {
     FrmLogin frmLogin = new FrmLogin();
     frmLogin.MdiParent = this;
     frmLogin.Show();
 }