/// <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();
 }
示例#2
0
        /// <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="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();
 }