From a20619b265a130602ce65e8dbab09ab0357c48c1 Mon Sep 17 00:00:00 2001 From: RKrom Date: Fri, 14 Sep 2012 16:46:23 +0000 Subject: [PATCH] Made Plugin Example compilable. git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2038 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- PluginExample/SimpleOutputDestination.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/PluginExample/SimpleOutputDestination.cs b/PluginExample/SimpleOutputDestination.cs index 5b6d23fcc..5efff1203 100644 --- a/PluginExample/SimpleOutputDestination.cs +++ b/PluginExample/SimpleOutputDestination.cs @@ -55,7 +55,8 @@ namespace PluginExample { } } - public override bool ExportCapture(bool manuallyInitiated, ISurface surface, ICaptureDetails captureDetails) { + public override ExportInformation ExportCapture(bool manuallyInitiated, ISurface surface, ICaptureDetails captureDetails) { + ExportInformation exportInformation = new ExportInformation(this.Designation, this.Description); CoreConfiguration config = IniConfig.GetIniSection(); OutputSettings outputSettings = new OutputSettings(); @@ -66,8 +67,10 @@ namespace PluginExample { host.SaveToStream(image, stream, outputSettings); } } - MessageBox.Show("Saved test file to: " + filePath); - return true; + exportInformation.Filepath = filePath; + exportInformation.ExportMade = true; + ProcessExport(exportInformation, surface); + return exportInformation; } } }