private void Cell_OnHoverOut(object sender, CellActionEventArgs e) { if (_isDragging) { return; } e.Cell.IsHovered = false; }
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; }
private void Cell_OnMoved(object sender, CellActionEventArgs e) { if (!_isDragging) { return; } DepaintCellsRange(); _endDragPoint = new Point(e.Cell.X, e.Cell.Y); PaintOverCellsRange(); }
private void Cell_OnPressed(object sender, CellActionEventArgs e) { _startDragPoint = new Point(e.Cell.X, e.Cell.Y); _isDragging = true; }