コード例 #1
0
 public void attendanceAvailable(Attendance att)
 {
     AttendanceAvailable(this, new AttendanceAvailableEventArgs { attendance = att });
 }
コード例 #2
0
 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();
             }
         });
     }
 }
コード例 #3
0
 void IReceiveEvents.attendanceReceived(Attendance attendance)
 {
     AttendanceAvailable(this, new AttendanceAvailableEventArgs { attendance = attendance });
 }