/// <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();
 }
Exemplo n.º 2
0
 public ClockController(IClockViewModel viewModel) => _viewModel = viewModel;
Exemplo n.º 3
0
 public ClockController(IClockViewModel viewModel, IConfigureOptions <KeyManagementOptions> options)
 {
     _viewModel = viewModel;
 }
Exemplo n.º 4
0
 internal Program(IClockViewModel clockViewModel)
 {
     _clockViewModel = clockViewModel;
     ((INotifyPropertyChanged)_clockViewModel).PropertyChanged += OnPropertyChanged;
 }