Наследование: IKeyboardHandler
Пример #1
0
 public MainWindow()
 {
     InitializeComponent();
     _gameBoy = new GameBoy();
     _keyboardHandler = new KeyboardHandler();
     _mainWindowViewModel = new GameBoyViewModel(_gameBoy,
                                                 new DispatcherAdapter(this),
                                                 new WindowAdapter(this),
                                                 new OpenFileDialogAdapterFactory(),
                                                 _keyboardHandler);
     this.DataContext = _mainWindowViewModel;
 }
Пример #2
0
 public MainWindow()
 {
     InitializeComponent();
     _gameBoy             = new GameBoy();
     _keyboardHandler     = new KeyboardHandler();
     _mainWindowViewModel = new GameBoyViewModel(_gameBoy,
                                                 new DispatcherAdapter(this),
                                                 new WindowAdapter(this),
                                                 new OpenFileDialogAdapterFactory(),
                                                 _keyboardHandler);
     this.DataContext = _mainWindowViewModel;
 }