Ejemplo n.º 1
0
        void objXmpp_ServerStatus(agsXMPP.protocol.client.Presence pres)//用户在线状态事件【3】
        {
            del_AddRecord AddRecord_del = new del_AddRecord(AddRecord);

            this.Invoke(AddRecord_del, new object[] { pres.Type.ToString(), pres.From.Bare, pres.Status });
            Thread.Sleep(50);
            //AddRecord(pres.Type.ToString(), pres.From.Bare, pres.Status);
        }
Ejemplo n.º 2
0
        void objXmpp_FriendList(agsXMPP.protocol.iq.roster.RosterItem item)//好友列表事件【2】
        {
            del_AddRecord AddRecord_del = new del_AddRecord(AddRecord);

            this.Invoke(AddRecord_del, new string[] { "unavailable", item.Jid, "" });
            Thread.Sleep(50);
            //AddRecord("unavailable", item.Jid, "");
        }