private void ApplySwap(Coin c1, Coin c2) { Point pos = c1.Position; c1.UpdateLoc(c2.PlaceId, c2.XPos, c2.YPos); c2.UpdateLoc(PosToIndex(pos.X, pos.Y), pos.X, pos.Y); if (OnCoinsSwap != null) OnCoinsSwap.Invoke(c1, c2); }