예제 #1
0
 public ObservableCollection <ResourceCalendar> GetUserResourceCalendars(string userId)
 {
     return(new ObservableCollection <ResourceCalendar>(ResourceCalendars.Where(rc => rc.OwningResourceId == userId)));
 }
예제 #2
0
 public ObservableCollection <ResourceCalendar> GetTeamResourceCalendars(string userId)
 {
     return(new ObservableCollection <ResourceCalendar>(ResourceCalendars.Where(rc => rc.OwningResourceId != userId && !rc.OwningResourceId.StartsWith("conferenceRoom"))));
 }
예제 #3
0
 public ObservableCollection <ResourceCalendar> GetSharedResourceCalendars()
 {
     return(new ObservableCollection <ResourceCalendar>(ResourceCalendars.Where(rc => rc.OwningResourceId.Contains("conferenceRoom"))));
 }