Exemplo n.º 1
0
 public void attendanceAvailable(Attendance att)
 {
     AttendanceAvailable(this, new AttendanceAvailableEventArgs { attendance = att });
 }
 protected void ReceivePresence(Attendance presence)
 {
     if (Providers.Globals.conversationDetails.Slides.Select(s => s.id.ToString()).Contains(presence.location))
     {
         Dispatcher.adopt(delegate
         {
             constructPersonFromUsername(presence.author);
             var user = people[presence.author];
             if (presence.present)
             {
                 user.slideLocation = user.slideLocation.Union(new List<string> { presence.location }).Distinct().ToList();
             }
             else
             {
                 user.slideLocation = user.slideLocation.Where(sl => sl != presence.location).ToList();
             }
         });
     }
 }
Exemplo n.º 3
0
 void IReceiveEvents.attendanceReceived(Attendance attendance)
 {
     AttendanceAvailable(this, new AttendanceAvailableEventArgs { attendance = attendance });
 }