private void AssemblyView_Load( object sender, EventArgs e ) { foreach ( string path in ls ) { ExecutableAnalied assembly = new ExecutableAnalied( path ); TreeNodeCollection basecollection = ( ls.Count == 1 ? treeView21.Nodes : treeView21.Nodes.Add( assembly.Source.Name.Name ).Nodes ); foreach ( TypeAnalied type in assembly.Types ) { Apply( type,basecollection ); } } }
public string[] Analyzing( string path, bool isDll, string namepack, List<string> References, Platform platform, bool is64 ,string cmpdir,int ID) { ExecutableAnalied executableAnalied = new ExecutableAnalied( Directory.GetFiles( path, "*.obj" )[ 0 ] ); List<string> GoFiles = new List<string>( ); executableAnalied.RunSources( ( key, text ) => { GoFiles.Add( key = Path.Combine( path, key += ".go" ) ); File.WriteAllText( key, text ); return true; }, ( str ) => { return true; }, isDll, ( isDll ? namepack : "main" ), Directory.GetFiles( path, "*.c" ).ToList( ), References, platform, is64 , cmpdir,ID ); return GoFiles.ToArray( ); }