Ejemplo n.º 1
0
        private void Window_Closed(object sender, EventArgs e)
        {
            MouseKeyboardEventHandler.UnInit();
            MouseKeyboardHook.StopHook();

            System.Windows.Interop.HwndSource.FromHwnd(windowHandle).RemoveHook(XmlNodePathRecorder.ProcessMessage);
            s_mainWin = null;
        }
Ejemplo n.º 2
0
        private void Window_Closed(object sender, EventArgs e)
        {
            MouseKeyboardEventHandler.UnInit();
            MouseKeyboardHook.StopHook();
            s_mainWin = null;

            System.Windows.Interop.HwndSource.FromHwnd(s_windowHandle).RemoveHook(RunOnUiThread);

            AppInsights.LogEvent("Window_Closed");
        }
Ejemplo n.º 3
0
        public static void UnInit()
        {
            if (s_timerFromPoint != null)
            {
                s_timerFromPoint.Stop();
                s_timerFromPoint.Elapsed -= OnTimedEvent;
                s_timerFromPoint.Close();
                s_timerFromPoint = null;
            }

            MouseKeyboardHook.StopHook();

            s_eventRecordNow.Reset();

            s_eventQuitRecording.Reset();
            if (s_threadRecorder != null)
            {
                s_threadRecorder.Join(1000);
                s_threadRecorder = null;
            }
        }