Ejemplo n.º 1
0
            /// <summary>
            /// Copies the current schedule to another schedules db.
            /// </summary>
            public uint CopyTo(SchedulesDb otherDb)
            {
                var newScheduleId = otherDb.Add();

                for (var pointer = _id + 1; pointer < _id + 1 + _count; pointer++)
                {
                    var value = _db._data[pointer];
                    otherDb.AddEntry(newScheduleId, value);
                }
                return(newScheduleId);
            }
Ejemplo n.º 2
0
 /// <summary>
 /// Adds a new schedule.
 /// </summary>
 public uint AddSchedule()
 {
     return(_schedulesDb.Add());
 }