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(); } }
private void MoveDown() { SelectedTile.Row++; MoveDownCommand.OnCanExecuteChanged(); MoveUpCommand.OnCanExecuteChanged(); }