/// <summary> /// Initializes a new instance of the GameViewModel class using the specified settings. /// </summary> public GameViewModel(IClockViewModel clock, IGame game, Player playerOne = Player.Human, Player playerTwo = Player.Human) { Clock = clock; Game = game; PlayerOne = playerOne; PlayerTwo = playerTwo; Start(); }
public ClockController(IClockViewModel viewModel) => _viewModel = viewModel;
public ClockController(IClockViewModel viewModel, IConfigureOptions <KeyManagementOptions> options) { _viewModel = viewModel; }
internal Program(IClockViewModel clockViewModel) { _clockViewModel = clockViewModel; ((INotifyPropertyChanged)_clockViewModel).PropertyChanged += OnPropertyChanged; }