public void init() { csta = new Messenger(); ICSTAEvent e = (ICSTAEvent)csta; e.OnEvent += E_OnEvent; myJid = null; }
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()); }