Пример #1
0
 private void AddToSchedule(EventDetails newEvent)
 {
     // contruct from event
     EventsCollection.Add(new ScheduleAppointment {
         Subject   = newEvent.TitleInfo, Location = newEvent.EventLocation,
         StartTime = UtilHelper.GetDatefromSqlDate(newEvent.EventStart),
         EndTime   = UtilHelper.GetDatefromSqlDate(newEvent.EventEnd),
         Color     = Color.Red, Notes = newEvent.EventId.ToString()
     });
 }