/// <summary> /// Constructor /// </summary> /// <param name="timeLine">The time line for which this position handler is built</param> public EventPositionHandler(TimeLineControl timeLine) { TimeLine = timeLine; AllocatedPositions = new List <List <ModelEvent> >(); EventPositions = new Dictionary <ModelEvent, Rectangle>(); CleanPositions(); }
/// <summary> /// Constructor /// </summary> /// <param name="modelEvent"></param> public EventControl(TimeLineControl controller, ModelEvent modelEvent) { Parent = controller; ModelEvent = modelEvent; Size = SIZE; Font = new System.Drawing.Font(FontFamily.GenericMonospace, 5); SetColor(); SetText(); Click += new EventHandler(EventControl_Click); }
/// <summary> /// Constructor /// </summary> /// <param name="timeLine">The time line for which this position handler is built</param> public EventPositionHandler(TimeLineControl timeLine) { TimeLine = timeLine; AllocatedPositions = new List<List<ModelEvent>>(); EventPositions = new Dictionary<ModelEvent, Rectangle>(); CleanPositions(); }