예제 #1
0
 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);
 }
예제 #2
0
        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);
                }
            }
        }
예제 #3
0
 public void OnPointerClick(PointerEventData eventData)
 {
     OnCellClick?.Invoke(this);
 }