private static void DecompileCode(string ainFileName, string pjeFileName) { var ainFile = new AinFile(ainFileName); var codeDisplayOptions = new CodeDisplayOptions(); var codeExporter = new CodeExporter(ainFile, codeDisplayOptions); codeExporter.Error += new EventHandler <ErrorEventArgs>(codeExporter_Error); string directory2 = Path.GetDirectoryName(pjeFileName); if (!Directory.Exists(directory2)) { Directory.CreateDirectory(directory2); } codeExporter.ExportFiles(directory2); }
public bool Run(string outputPath, CodeExporter codeExporter) { return(base.Run(codeExporter.ainFile.OriginalFilename, outputPath, codeExporter)); }