public HomeViewModel()
{
IObservable<bool> selectionOk = this.WhenAnyValue(
x => x.SelectedDifficulty,
x => x != "Select One");
Play = ReactiveCommand.Create(
PlayGame,
selectionOk);
}
public void PlayGame() { }
public ReactiveCommand<Unit, Unit> Play { get; }
public HomeViewModel()
{
IObservable<bool> selectionOk = this.WhenAnyValue(
x => x.SelectedDifficulty,
x => x != "Select One");
Play = ReactiveCommand.Create(
PlayGame,
selectionOk);
}
public void PlayGame() { }
public ReactiveCommand<Unit, Unit> Play { get; }