Пример #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;
        }