public GroupInviteEventArgs(int friendNumber, ToxGroupType type, byte[] data) : base(friendNumber) { if (data == null) { throw new ArgumentNullException("data"); } Data = (byte[])data.Clone(); GroupType = type; }
public GroupInviteEventArgs(int friendNumber, ToxGroupType type, byte[] data) : base(friendNumber) { Data = (byte[])data.Clone(); GroupType = type; }
public GroupInviteEventArgs(int friendNumber, ToxGroupType type, byte[] data) : base(friendNumber) { if (data == null) throw new ArgumentNullException("data"); Data = (byte[])data.Clone(); GroupType = type; }
private void AddGroupToView(int groupnumber, ToxGroupType type) { string groupname = string.Format("Groupchat #{0}", groupnumber); if (type == ToxGroupType.Av) groupname += " \uD83D\uDD0A"; /*:loud_sound:*/ var groupMV = new GroupControlModelView(); groupMV.ChatNumber = groupnumber; groupMV.Name = groupname; groupMV.GroupType = type; groupMV.StatusMessage = string.Format("Peers online: {0}", tox.GetGroupMemberCount(groupnumber));//string.Join(", ", tox.GetGroupNames(groupnumber)); groupMV.SelectedAction = GroupSelectedAction; groupMV.DeleteAction = GroupDeleteAction; groupMV.ChangeTitleAction = ChangeTitleAction; ViewModel.ChatCollection.Add(groupMV); RearrangeChatList(); }