示例#1
0
        /// <summary>
        ///
        /// </summary>
        public static void Stop()
        {
            Log.Debug("Stop()");

            OnClipboardChange = null;
            ClipboardWatcher.Stop();
        }
示例#2
0
        /// <summary>
        ///
        /// </summary>
        public static void Start()
        {
            Log.Debug("Start()");

            ClipboardWatcher.Start();
            ClipboardWatcher.OnClipboardChange += ClipboardWatcher_OnClipboardChange;
        }
示例#3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="value"></param>
        protected override void SetVisibleCore(bool value)
        {
            CreateHandle();

            m_Instance = this;

            nextClipboardViewer = SetClipboardViewer(m_Instance.Handle);

            base.SetVisibleCore(false);
        }
示例#4
0
        /// <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;
        }
示例#5
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="value"></param>
        protected override void SetVisibleCore(bool value)
        {
            CreateHandle();

            m_Instance = this;

            nextClipboardViewer = SetClipboardViewer(m_Instance.Handle);

            base.SetVisibleCore(false);
        }
示例#6
0
        /// <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;
        }