private void RosterManager_OnStreamChanged(object sender) { JabberClient cli = m_stream as JabberClient; if (cli == null) { return; } cli.OnIQ += new IQHandler(GotIQ); cli.OnPresence += new PresenceHandler(cli_OnPresence); cli.OnDisconnect += new bedrock.ObjectHandler(GotDisconnect); }
private void BookmarkManager_OnStreamChanged(object sender) { m_stream.OnDisconnect += new bedrock.ObjectHandler(m_stream_OnDisconnect); m_stream.OnError += new bedrock.ExceptionHandler(m_stream_OnError); JabberClient cli = m_stream as JabberClient; if (cli == null) { return; } cli.OnAuthenticate += new bedrock.ObjectHandler(cli_OnAuthenticate); }