private ConvertFormat(string name, string fileExtension, bool supportsSingleFile, DocumentType allowedTypes, params string[] args) { _args = args; _dialog = null; Name = name; FileExtension = fileExtension; SupportsSingleFile = supportsSingleFile; AllowedTypes = allowedTypes; }
private ConvertFormat(string name, string fileExtension, bool supportsSingleFile, ImageFormatDialog dialog) { _args = null; _dialog = dialog; Program.PrepareForm(dialog); Name = name; FileExtension = fileExtension; SupportsSingleFile = supportsSingleFile; AllowedTypes = DocumentType.Any & ~DocumentType.Image; }