public EventDB(UndoMgr undomgr)
{
controlPointStore = new ObjectStore<ControlPoint>(undomgr);
courseStore = new ObjectStore<Course>(undomgr);
courseControlStore = new ObjectStore<CourseControl>(undomgr);
eventStore = new ObjectStore<Event>(undomgr);
specialStore = new ObjectStore<Special>(undomgr);
legStore = new ObjectStore<Leg>(undomgr);
random = (long) (rand.NextDouble() * long.MaxValue / 2);
}