Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        public static void Stop()
        {
            Log.Debug("Stop()");

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

            ClipboardWatcher.Start();
            ClipboardWatcher.OnClipboardChange += ClipboardWatcher_OnClipboardChange;
        }
Exemplo n.º 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);
        }
Exemplo n.º 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;
        }
Exemplo n.º 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);
        }
Exemplo n.º 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;
        }