Beispiel #1
0
 public GroupNamelistChangeEventArgs(int groupNumber, int peerNumber, ToxChatChange change)
     : base(groupNumber, peerNumber)
 {
     Change = change;
 }
Beispiel #2
0
 public GroupNamelistChangeEventArgs(int groupNumber, int peerNumber, ToxChatChange change)
     : base(groupNumber, peerNumber)
 {
     Change = change;
 }
Beispiel #3
0
 private void tox_OnGroupNamelistChange(int groupnumber, int peernumber, ToxChatChange change)
 {
     var group = this.ViewModel.GetGroupObjectByNumber(groupnumber);
     if (group != null)
     {
         if (change == ToxChatChange.PEER_ADD || change == ToxChatChange.PEER_DEL)
         {
             var status = string.Format("Peers online: {0}", tox.GetGroupMemberCount(group.ChatNumber));
             group.StatusMessage = status;
         }
         if (group.Selected)
         {
             group.AdditionalInfo = string.Join(", ", tox.GetGroupNames(group.ChatNumber));
         }
     }
 }