示例#1
0
        public override ExportInformation ExportCapture(bool manuallyInitiated, ISurface surface, ICaptureDetails captureDetails)
        {
            ExportInformation exportInformation = new ExportInformation(this.Designation, this.Description);

            plugin.Upload(captureDetails, surface, exportInformation);
            ProcessExport(exportInformation, surface);
            return(exportInformation);
        }
 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 Flickr");
             surface.Modified = false;
         }
         return(uploaded);
     }
 }
示例#3
0
        public override ExportInformation ExportCapture(bool manuallyInitiated, ISurface surface, ICaptureDetails captureDetails)
        {
            ExportInformation exportInformation = new ExportInformation(Designation, Description);
            string            uploadUrl;
            bool uploaded = _plugin.Upload(captureDetails, surface, out uploadUrl);

            if (uploaded)
            {
                exportInformation.ExportMade = true;
                exportInformation.Uri        = uploadUrl;
            }
            ProcessExport(exportInformation, surface);
            return(exportInformation);
        }