/// <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); }
/// <summary> /// Adds a new schedule. /// </summary> public uint AddSchedule() { return(_schedulesDb.Add()); }