private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            RemoveLog();
            Utility.Utility.LogSystemInformation();

            settings = Preferences.Load();

            SetupControls();

            _systemWatcher.ForegroundChanged      += SystemWatcherSystemChanged;
            _keyboardWatcher.KeyboardInputChanged += _keyboardWatcher_KeyboardInputChanged;
            _mouseWatcher.CursorPositionChanged   += MouseWatcherOnCursorPositionChanged;
            _processWatcher.ProcessStarted        += ProcessWatcherOnProcessStarted;
            _processWatcher.ProcessFinished       += ProcessWatcherOnProcessFinished;

            _systemWatcher.Hook();
            _keyboardWatcher.HookKeyboard();
            _processWatcher.Hook();

            FindRa3Process();

            tmr.Tick    += Tmr_Tick;
            tmr.Interval = new TimeSpan(0, 0, 0, 10);

            Logger.Info("OK.. application launch");

            // tmr.Start();
        }