public void Cleanup() { _imageViewierPlugin.Cleanup(); _imageViewierPlugin = null; try { File.Delete(_image); } catch (Exception) { // ignored } }
public void Prepare(string path, ContextObject context) { _imageViewierPlugin = new ImageViewer.Plugin(); _imageViewierPlugin.Prepare(path, context); }