public void Dispose()
 {
     ChangeClipboardChain(handle, clipboardViewerNext);
     handle = IntPtr.Zero;
     clipboardViewerNext = IntPtr.Zero;
     dataHandler = null;
 }
 public void Dispose()
 {
     ChangeClipboardChain(handle, clipboardViewerNext);
     handle = IntPtr.Zero;
     clipboardViewerNext = IntPtr.Zero;
     dataHandler         = null;
 }
        public ClipboardMonitor(IClipboardDataHandler handler, IntPtr winHandle)
        {
            enabled = Settings.Default.MonitorClipboard;

            Settings.Default.PropertyChanged += delegate(object sender, PropertyChangedEventArgs e)
            {
                enabled = Settings.Default.MonitorClipboard;
            };

            handle = winHandle;
            clipboardViewerNext = SetClipboardViewer(handle);

            this.dataHandler = handler;
        }
        public ClipboardMonitor(IClipboardDataHandler handler, IntPtr winHandle)
        {
            enabled = Settings.Default.MonitorClipboard;

            Settings.Default.PropertyChanged += delegate(object sender, PropertyChangedEventArgs e)
            {
                enabled = Settings.Default.MonitorClipboard;
            };

            handle = winHandle;
            clipboardViewerNext = SetClipboardViewer(handle);

            this.dataHandler = handler;
        }