コード例 #1
0
        void UpdateUI(String fileName)
        {
            treeView_Dependencies.Nodes.Clear();
            PortableExecutable pe = new PortableExecutable(fileName);

            pe.MakeDependencies();
            TreeNodeCollection tNodes = treeView_Dependencies.Nodes;

            RecursivelyPopulateTheTree(pe, tNodes);

            pe.MakeImports();
            pe.MakeExports();

            listBox_Imports.Items.Clear();
            foreach (object __o in pe.GetImports())
            {
                String import = (String)__o;
                // loop body
                listBox_Imports.Items.Add(import);
            }

            listBox_Exports.Items.Clear();
            foreach (object __o in pe.GetExports())
            {
                String import = (String)__o;
                // loop body
                listBox_Exports.Items.Add(import);
            }
        }