protected virtual void OnMouseEnter() { if (CellHovered != null) { CellHovered.Invoke(representedCellId); } }
protected override void OnMouseMove(MouseEventArgs e) { base.OnMouseMove(e); if (e.Location == _lastMove) { return; } _lastMove = e.Location; var hit = HitTest(e.Location); if (hit != null) { CellHovered?.Invoke(this, new CellHoveredEventArgs(hit.Index)); } else { CellHovered?.Invoke(this, null); } }
private void HoverTimerEventProcessor(object sender, EventArgs e) { _hoverTimer.Stop(); CellHovered?.Invoke(this, new CellEventArgs(LastCell, CurrentCell)); }