/// <summary> /// /// </summary> public static void Stop() { Log.Debug("Stop()"); OnClipboardChange = null; ClipboardWatcher.Stop(); }
/// <summary> /// /// </summary> public static void Start() { Log.Debug("Start()"); ClipboardWatcher.Start(); ClipboardWatcher.OnClipboardChange += ClipboardWatcher_OnClipboardChange; }
/// <summary> /// /// </summary> /// <param name="value"></param> protected override void SetVisibleCore(bool value) { CreateHandle(); m_Instance = this; nextClipboardViewer = SetClipboardViewer(m_Instance.Handle); base.SetVisibleCore(false); }
/// <summary> /// /// </summary> public static void Stop() { m_Instance.Invoke(new MethodInvoker(() => { ChangeClipboardChain(m_Instance.Handle, nextClipboardViewer); })); m_Instance.Invoke(new MethodInvoker(m_Instance.Close)); m_Instance.Dispose(); m_Instance = null; }