Exemple #1
0
        private void SelectTile(TileViewModel tile)
        {
            if (tile == SelectedTile)
            {
                tile = null;
            }

            SelectedTile?.Deselect();
            SelectedTile = tile;
            SelectedTile?.Select();
            MoveDownCommand.OnCanExecuteChanged();
            MoveLeftCommand.OnCanExecuteChanged();
            MoveUpCommand.OnCanExecuteChanged();
            MoveRightCommand.OnCanExecuteChanged();
            DeleteTileCommand.OnCanExecuteChanged();
            OnPropertyChanged("HintVisibility");
            if (SelectedTile != null)
            {
                ShowEditInfo();
            }
            else
            {
                HideEditInfo();
            }
        }
Exemple #2
0
 private void MoveDown()
 {
     SelectedTile.Row++;
     MoveDownCommand.OnCanExecuteChanged();
     MoveUpCommand.OnCanExecuteChanged();
 }