private void AddPartyToList(Party party, Presence presence) { var attendance = new Attendance(party); attendance.PropertyChanged += MarkUnmarkCurrentlyEngaged; if (presence != null) { attendance.SetPresence(presence); } ServicePartyAttendanceList.Add(attendance); ServicePartyAttendanceLookup[attendance.Party.Username] = attendance; }
public void AddAdHocPerson(Party party, String shortCode) { var attendance = new Attendance(party); var presence = Presence.AlwaysOn; presence.Resource = "_blitsme-" + shortCode; presence.ShortCode = shortCode; attendance.PropertyChanged += MarkUnmarkCurrentlyEngaged; attendance.SetPresence(presence); ServicePartyAttendanceList.Add(attendance); ServicePartyAttendanceLookup[attendance.Party.Username] = attendance; }
private void _reset() { ServicePartyAttendanceList.Clear(); ServicePartyAttendanceLookup.Clear(); }