public override bool ExportCapture(ISurface surface, ICaptureDetails captureDetails) { using (Image image = surface.GetImageForExport()) { bool uploaded = plugin.Upload(captureDetails, image); if (uploaded) { surface.SendMessageEvent(this, SurfaceMessageTyp.Info, "Exported to Dropbox"); surface.Modified = false; } return(uploaded); } }
public override ExportInformation ExportCapture(bool manually, ISurface surface, ICaptureDetails captureDetails) { ExportInformation exportInformation = new ExportInformation(this.Designation, this.Description); string uploadURL = null; bool uploaded = plugin.Upload(captureDetails, surface, out uploadURL); if (uploaded) { exportInformation.Uri = uploadURL; exportInformation.ExportMade = true; if (config.AfterUploadLinkToClipBoard) { ClipboardHelper.SetClipboardData(uploadURL); } } ProcessExport(exportInformation, surface); return(exportInformation); }