예제 #1
0
        public BluescreenWindowWin7(Windows7BluescreenViewModel vm = null)
        {            // gets the main screen current Resolution
            DataContext = _vm = vm ?? new Windows7BluescreenViewModel();
            InitializeComponent();

            Task.Run(SetupScreen);
        }
 public BluescreenWindowWin7(Windows7BluescreenViewModel vm = null)
 {            // gets the main screen current Resolution
     DataContext = _vm = vm ?? new Windows7BluescreenViewModel();
     InitializeComponent();
     Cursor   = Cursors.None;
     Loaded  += Bluescreen_Loaded;
     Closing += Window_AboutToClose;
     KeyDown += Window_PreviewKeyDown;
     HookKeyboard();
 }