private void DGV_Cell_Mouse_Click(object sender, DataGridViewCellMouseEventArgs e) { OnCellClick?.Invoke( e.RowIndex, (sender as DataGridView)?.Rows[e.RowIndex].Cells[0].Value.ToString(), e.Button); }
public override void Click(Engine engine, Vector2 localPosition) { Vector2?coordinates = GetCoordinatesFor(LocalTransform, localPosition); if (coordinates.HasValue) { GridCell cell = GetCellAt(coordinates.Value); if (OnCellClick != null) { OnCellClick.Invoke(cell.Coordinates); } } }
public void OnPointerClick(PointerEventData eventData) { OnCellClick?.Invoke(this); }