Inheritance: IKeyboardHandler
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }