Exemple #1
0
 /// <summary>
 /// Handles the user wanting load an assembly.
 /// </summary>
 /// <param name="sender">Calling object</param>
 /// <param name="e">Event arguments</param>
 private void LoadAssembly_Click(object sender, RoutedEventArgs e)
 {
     System.Windows.Forms.OpenFileDialog ofd = new System.Windows.Forms.OpenFileDialog();
     if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         peFile = new Model.PEFile(new TheBoxSoftware.Reflection.Core.PeCoffFile(ofd.FileName));
         this.InitialiseForNewPEFile();
     }
 }
        private void LoadAndInitialiseAssembly(string filename)
        {
            PeCoffFile coffFile = new PeCoffFile(filename, new FileSystem());

            coffFile.Initialise();

            _peFile = new Model.PEFile(coffFile);
            InitialiseForNewPEFile();
        }