Esempio n. 1
0
        public void init()
        {
            csta = new Messenger();
            ICSTAEvent e = (ICSTAEvent)csta;

            e.OnEvent += E_OnEvent;
            myJid      = null;
        }
Esempio n. 2
0
        public void initCSTA()
        {
            csta = new Messenger();
            ICSTAEvent e = (ICSTAEvent)csta;

            e.OnEvent += E_OnEvent;
            ICSTAErrorEvent err = (ICSTAErrorEvent)csta;

            err.OnEvent += E_OnErrorEvent;
            myJid        = null;

            csta.AddHandler(new Presence());
            csta.AddHandler(new MessageHistory());
            csta.AddHandler(new MessageAck());
            csta.AddHandler(new SendMessage());
        }