Ejemplo n.º 1
0
        public void TimelineOnStepInserted(int index, bool silent = false)
        {
            var sc = new StepItem(StepManager.Steps[index], index);

            sc.MouseEnter += OnMouseEnter;
            sc.MouseLeave += OnMouseLeave;
            sc.MouseClick += OnMouseClick;
            _stepControls.Insert(index, sc);
            if (!silent)
            {
                ConstructList();
            }
        }
Ejemplo n.º 2
0
 public void MarkAsSelecgted(int index)
 {
     if (IgnoreMarkAsSelected)
     {
         return;
     }
     if ((_currentSelection != null) && !_currentSelection.Marked)
     {
         _currentSelection.BackColor = BackColor;
     }
     if (index < 0)
     {
         _currentSelection = null;
     }
     else
     {
         _currentSelection           = _stepControls[index];
         _currentSelection.BackColor = _selectedStepColor;
         ScrollControlIntoView(_currentSelection);
     }
     MainForm.RedrawNeeded?.Invoke();
     MainForm.PerformFigureSelection(_currentSelection?.Step.Figure);
 }