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); }
public int IndexOf(CustomEvent appointment) { return(List.IndexOf(appointment)); }
public void Add(CustomEvent appointment) { base.List.Add(appointment); }