Ejemplo n.º 1
0
 public ClipboardWatcher()
 {
     _watcher = new ClipboardShadowWatcher();
     _watcher.DrawClipboard += () =>
     {
         var handler = ClipboardChanged;
         if (handler != null)
         {
             Task.Run(() => handler(this, EventArgs.Empty));
         }
     };
 }
Ejemplo n.º 2
0
 public ClipboardWatcher()
 {
     _watcher = new ClipboardShadowWatcher();
     _watcher.DrawClipboard += () =>
     {
         var handler = ClipboardChanged;
         if (handler != null)
         {
             Task.Run(() => handler(this, EventArgs.Empty));
         }
     };
 }