Ejemplo n.º 1
0
 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 Picasa");
             surface.Modified = false;
         }
         return(uploaded);
     }
 }
        public override ExportInformation ExportCapture(bool manuallyInitiated, 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.ExportMade = true;
                exportInformation.Uri        = uploadURL;
            }
            ProcessExport(exportInformation, surface);
            return(exportInformation);
        }