Пример #1
0
 private int GetSlot(PictureBox sender) => SlotPictureBoxes.IndexOf(sender);
Пример #2
0
 private int GetSlot(PictureBox sender) => SlotPictureBoxes.IndexOf(WinFormsUtil.GetUnderlyingControl(sender) as PictureBox);