public void MoveDown() { KeyDown.CanExecute(false); CallPropertyChanged("KeyDown"); HintShow.HideHint(); player.Row = player.Row + 1; CallPropertyChanged("PlayerMargin"); if (isMulti) { speaker.PlayCommand("down"); } CheckIfWon(); KeyDown.CanExecute(true); CallPropertyChanged("KeyDown"); }
public void MoveRight() { KeyRight.CanExecute(false); CallPropertyChanged("KeyRight"); HintShow.HideHint(); player.Col = player.Col + 1; CallPropertyChanged("PlayerMargin"); if (isMulti) { speaker.PlayCommand("right"); } CheckIfWon(); KeyRight.CanExecute(true); CallPropertyChanged("KeyRight"); }