Subject: How to update my roster listview control using Matrix.Xmpp.Roster.RosterEventArgs
Hi Alex,
I try to update my roster listview control using RosterEventArgs:
I can't find another property than "e.RosterItem.Subscription" but I need something to ask if an item was added, removed or else.
What I have to do to know if an RosterItem was added, removed or something else.
Thank you for your help.
Martin
I try to update my roster listview control using RosterEventArgs:
...
xmppClient.OnRosterItem += new EventHandler<Matrix.Xmpp.Roster.RosterEventArgs>(xmppClient_OnRosterItem);
...
void xmppClient_OnRosterItem(object sender, Matrix.Xmpp.Roster.RosterEventArgs e)
{
...
if (e.RosterItem.Subscription != Subscription.remove )
{
...
}
[b]if ( e.RosterItem.???? != ?????.add)[/b]
{
...
}
...
}
xmppClient.OnRosterItem += new EventHandler<Matrix.Xmpp.Roster.RosterEventArgs>(xmppClient_OnRosterItem);
...
void xmppClient_OnRosterItem(object sender, Matrix.Xmpp.Roster.RosterEventArgs e)
{
...
if (e.RosterItem.Subscription != Subscription.remove )
{
...
}
[b]if ( e.RosterItem.???? != ?????.add)[/b]
{
...
}
...
}
I can't find another property than "e.RosterItem.Subscription" but I need something to ask if an item was added, removed or else.
What I have to do to know if an RosterItem was added, removed or something else.
Thank you for your help.
Martin