Exemplo n.º 1
0
        CustomEvent CreateEvent(CustomEventList eventList, string subject, object resourceId, int status, int label)
        {
            CustomEvent apt = new CustomEvent(eventList);

            apt.Subject = subject;
            apt.OwnerId = resourceId;
            Random rnd            = RandomInstance;
            int    rangeInMinutes = 60 * 24;

            apt.StartTime = DateTime.Today + TimeSpan.FromMinutes(rnd.Next(0, rangeInMinutes));
            apt.EndTime   = apt.StartTime + TimeSpan.FromMinutes(rnd.Next(0, rangeInMinutes / 4));
            apt.Status    = status;
            apt.Label     = label;
            return(apt);
        }
Exemplo n.º 2
0
 public int IndexOf(CustomEvent appointment)
 {
     return(List.IndexOf(appointment));
 }
Exemplo n.º 3
0
 public void Add(CustomEvent appointment)
 {
     base.List.Add(appointment);
 }