public static void ClipboardUploadWithContentViewer(TaskSettings taskSettings = null) { if (taskSettings == null) { taskSettings = TaskSettings.GetDefaultTaskSettings(); } using (ClipboardContentViewer ccv = new ClipboardContentViewer()) { if (ccv.ShowDialog() == DialogResult.OK && !ccv.IsClipboardEmpty) { ClipboardUpload(taskSettings); } } }
public override void ClipboardUpload() { if (Engine.ConfigUI.ShowClipboardContentViewer) { using (var ccv = new ClipboardContentViewer()) { if (ccv.ShowDialog() == DialogResult.OK && !ccv.IsClipboardEmpty) { UploadUsingClipboard(); } Engine.ConfigUI.ShowClipboardContentViewer = !ccv.DontShowThisWindow; } } else { UploadUsingClipboard(); } }
public static void ClipboardUploadWithContentViewer() { if (Program.Settings.ShowClipboardContentViewer) { using (ClipboardContentViewer ccv = new ClipboardContentViewer()) { if (ccv.ShowDialog() == DialogResult.OK && !ccv.IsClipboardEmpty) { UploadManager.ClipboardUpload(); } Program.Settings.ShowClipboardContentViewer = !ccv.DontShowThisWindow; } } else { UploadManager.ClipboardUpload(); } }
private static void ProcessClipboardContentViewerDialog(ClipboardContentViewer ccv, TaskSettings taskSettings = null) { if (taskSettings == null) taskSettings = TaskSettings.GetDefaultTaskSettings(); if (ccv.ShowDialog() == DialogResult.OK && ccv.IsClipboardContentValid) { if (ccv.ClipboardContentType != EClipboardContentType.Default) { ClipboardUploadCached(ccv, taskSettings); } else { ClipboardUpload(taskSettings); } } else if (ccv.ClipboardContentType == EClipboardContentType.Image) { ((Image)ccv.ClipboardContent).Dispose(); } }
public static void ClipboardUploadMainWindow(TaskSettings taskSettings = null) { if (taskSettings == null) { taskSettings = TaskSettings.GetDefaultTaskSettings(); } if (Program.Settings.ShowClipboardContentViewer) { using (ClipboardContentViewer ccv = new ClipboardContentViewer(true)) { if (ccv.ShowDialog() == DialogResult.OK && !ccv.IsClipboardEmpty) { ClipboardUpload(taskSettings); } Program.Settings.ShowClipboardContentViewer = !ccv.DontShowThisWindow; } } else { ClipboardUpload(taskSettings); } }