コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
 private void _reset()
 {
     ServicePartyAttendanceList.Clear();
     ServicePartyAttendanceLookup.Clear();
 }