Beispiel #1
0
        private void Cell_OnHoverOut(object sender, CellActionEventArgs e)
        {
            if (_isDragging)
            {
                return;
            }

            e.Cell.IsHovered = false;
        }
Beispiel #2
0
        private void Cell_OnReleased(object sender, CellActionEventArgs e)
        {
            _endDragPoint = new Point(e.Cell.X, e.Cell.Y);

            SendRange?.Invoke(this, new PointsRangeEventArgs(_startDragPoint, _endDragPoint));

            _isDragging = false;

            DepaintCellsRange();

            e.Cell.IsHovered = true;
        }
Beispiel #3
0
        private void Cell_OnMoved(object sender, CellActionEventArgs e)
        {
            if (!_isDragging)
            {
                return;
            }

            DepaintCellsRange();

            _endDragPoint = new Point(e.Cell.X, e.Cell.Y);

            PaintOverCellsRange();
        }
Beispiel #4
0
        private void Cell_OnPressed(object sender, CellActionEventArgs e)
        {
            _startDragPoint = new Point(e.Cell.X, e.Cell.Y);

            _isDragging = true;
        }