public static void StopMonitorMode() { ClipboardMonitor.OnClipboardChange -= ClipboardMonitor_OnClipboardChange; ClipboardMonitor.Stop(); PathGenerator.ClearMonitorTempFolder(); }
private static void AppendFileToClipboard(string filePath) { DataObject newDataObject = ClipboardData.CloneDataObject(monitorModeData.Storage); newDataObject.SetData(DataFormats.FileDrop, true, new string[] { filePath }); ClipboardMonitor.Stop(); Clipboard.SetDataObject(newDataObject, true); ClipboardMonitor.Start(); }