//this can be used by the import callback to determine whether this is a "new" import operation or not. //specifically, the editor form in BASeBlock uses this to determine whether it can delete any previously created image from the CreatorProperties //data of the level. public static ImageImportOptions DoImport(IWin32Window uparent,SizeF editsize,ImageImportCallback importcallback) { ImageImport useform = new ImageImport(editsize, importcallback); useform.ShowDialog(uparent); return useform.GetCurrentOptions(); }
public ImageImport(SizeF Editsize, ImageImportCallback importcallback) : this() { callbackfunc = importcallback; EditorSize=Editsize; }