Beispiel #1
0
 /// <inheritdoc />
 public MarksBar(TimeInfo timeinfo) : base(timeinfo)
 {
     BackColor = Color.Gray;
     _marksSelectionManager                   = MarksSelectionManager.Manager();
     _timeLineGlobalEventManager              = TimeLineGlobalEventManager.Manager;
     _timeLineGlobalEventManager.MarksMoving += TimeLineGlobalEventManagerTimeLineGlobalMoving;
     _timeLineGlobalEventManager.DeleteMark  += TimeLineGlobalEventManagerDeleteTimeLineGlobal;
     _marksSelectionManager.SelectionChanged += _marksSelectionManager_SelectionChanged;
     _rows = new List <MarkRow>();
     MarkRow.MarkRowChanged += MarkRow_MarkRowChanged;
 }
Beispiel #2
0
		public Ruler(TimeInfo timeinfo)
			: base(timeinfo)
		{
			AutoScaleMode = AutoScaleMode.Font;
			BackColor = Color.Gray;
			_marksSelectionManager = MarksSelectionManager.Manager();
			_timeLineGlobalEventManager = TimeLineGlobalEventManager.Manager;
			_timeLineGlobalEventManager.MarksMoving += TimeLineGlobalEventManagerTimeLineGlobalMoving;
			_timeLineGlobalEventManager.DeleteMark += TimeLineGlobalEventManagerDeleteTimeLineGlobal;
			_marksSelectionManager.SelectionChanged += _marksSelectionManager_SelectionChanged;
			recalculate();
			double factor = ScalingTools.GetScaleFactor();
			_arrowBase = (int) (16 * factor);
			_arrowLength = (int)(10 * factor);
		}