Esempio n. 1
0
        private void hexViewToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //Debug.WriteLine("[hexViewToolStripMenuItem_Click]");
            log.Log(LogType.Normal, "hexViewToolStripMenuItem_Click");
            if (this.reaperListView1.SelectedIndices[0] > -1)
            {
                var fileBytes  = File.ReadAllBytes(this.myPeFileName);
                var rFileBytes = new byte[int.Parse(this.reaperListView1.SelectedItems[0].SubItems[4].Text, NumberStyles.HexNumber)];
                Array.Copy(fileBytes, int.Parse(this.reaperListView1.SelectedItems[0].SubItems[3].Text, NumberStyles.HexNumber), rFileBytes, 0, rFileBytes.Length);

                using (var a = new frmHexView(uint.Parse(this.reaperListView1.SelectedItems[0].SubItems[1].Text, NumberStyles.HexNumber), rFileBytes))
                {
                    a.ShowDialog();
                }
            }
        }
Esempio n. 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     //Debug.WriteLine("[button1_Click]");
     log.Log(LogType.Normal, "button1_Click");
     if (this.radioButton1.Checked)
     {
         using (var frm = new frmDisassemblyView(this.addr, this.bitsRead, this.Is64))
         {
             this.Hide();
             frm.ShowDialog();
             this.Close();
         }
     }
     if (this.radioButton2.Checked)
     {
         using (var frm = new frmHexView(this.addr, this.bitsRead))
         {
             this.Hide();
             frm.ShowDialog();
             this.Close();
         }
     }
 }