public void ActivateTile(Point mousePosition) { ActiveTile = GetTileByCursorPosition(mousePosition); if (ActiveTile != null) { ActiveTile.State = TileState.Dragged; ActiveTile.DockToNode(null); } }
public void DropTile(Point mousePosition) { ActiveTile.DockToNode(ModelRef.Grid.ActiveNode); ActiveTile.State = TileState.Normal; ActiveTile = null; }