Beispiel #1
0
        /// <summary>
        /// Default constructor
        /// </summary>
        public MainWindow()
        {
            // Set up UI
            InitializeComponent();

            // Create view models
            AppVM       = new AppViewModel();
            DataContext = GameManagerVM = new GameManagerViewModel(AppVM);
            BookmarkPanel.DataContext = BookmarksVM = new BookmarksViewModel(AppVM);

            // Setup keyboard hook
            GlobalKeyboardHook = new GlobalKeyboardHook();
            GlobalKeyboardHook.KeyboardPressed += OnKeyPressed;
        }
Beispiel #2
0
 /// <summary>
 /// Dispose
 /// </summary>
 public void Dispose()
 {
     GlobalKeyboardHook?.Dispose();
 }