public MainWindow()
        {
            InitializeComponent();

            var countData = CountData.GetCurrent();

            _vm = new ViewModel();
            _vm.CtrlCount.Value = countData.Ctrl;
            _vm.CapsCount.Value = countData.Caps;
            DataContext         = _vm;

            var globalHook = Hook.GlobalEvents();

            globalHook.KeyUp   += GlobalHook_KeyUp;
            globalHook.KeyDown += GlobalHook_KeyDown;
        }
 private void ResetButton_OnClick(object sender, RoutedEventArgs e)
 {
     CountData.ResetCurrent();
     _vm.CtrlCount.Value = 0;
     _vm.CapsCount.Value = 0;
 }