Made Plugin Example compilable.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2038 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-09-14 16:46:23 +00:00
parent 203a34ee6f
commit a20619b265

View file

@ -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<CoreConfiguration>(); CoreConfiguration config = IniConfig.GetIniSection<CoreConfiguration>();
OutputSettings outputSettings = new OutputSettings(); OutputSettings outputSettings = new OutputSettings();
@ -66,8 +67,10 @@ namespace PluginExample {
host.SaveToStream(image, stream, outputSettings); host.SaveToStream(image, stream, outputSettings);
} }
} }
MessageBox.Show("Saved test file to: " + filePath); exportInformation.Filepath = filePath;
return true; exportInformation.ExportMade = true;
ProcessExport(exportInformation, surface);
return exportInformation;
} }
} }
} }