private void btnCapture_Click(object sender, RoutedEventArgs e)
        {
            PointerWnd = new PointerWindow();
            PointerWnd.Show();
            MouseMarkerTimer = new DispatcherTimer();
            MouseMarkerTimer.Tick += MouseMarkerTimer_Tick;
            MouseMarkerTimer.Interval = new TimeSpan(0, 0, 0, 0, 1000 / 120);
            MouseMarkerTimer.Start();

            MouseHooks.Start();
            MouseHooks.MouseAction += new EventHandler(RecordClickEvent);

            _mainWindow.Hide();
        }
        public void Activate()
        {
            MouseHooks.stop();

            if (MouseMarkerTimer != null)
            {
                MouseMarkerTimer.Stop();
                MouseMarkerTimer = null;
            }
            if (PointerWnd != null)
            {
                PointerWnd.Close();
                PointerWnd = null;
            }
        }