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