public void Constructor() { RELNode r = _resource as RELNode; if (r._prologSect != -1) { ModuleDataNode s = r._sections[r._prologSect]; foreach (SectionEditor l in SectionEditor._openedSections) { if (l._section == s) { l.Focus(); l.Position = r._prologIndex * 4; l.hexBox1.Focus(); return; } } SectionEditor e = new SectionEditor(s as ModuleSectionNode); e.Show(); e.Position = r._prologIndex * 4; e.hexBox1.Focus(); } else { MessageBox.Show("This module has no constructor function."); } }
public void Unresolved() { RELNode r = _resource as RELNode; if (r._unresReloc != null) { ModuleDataNode s = r._unresReloc._section; foreach (SectionEditor l in SectionEditor._openedSections) { if (l._section == s) { l.Focus(); l.Position = r._unresReloc._index * 4; l.hexBox1.Focus(); return; } } SectionEditor e = new SectionEditor(s as ModuleSectionNode); e.Show(); e.Position = r._unresReloc._index * 4; e.hexBox1.Focus(); } else { MessageBox.Show("This module has no unresolved function."); } }
public void Unresolved() { RELNode r = _resource as RELNode; ModuleDataNode s = r.Sections[r._unresolvedSection]; foreach (SectionEditor l in SectionEditor._openedSections) { if (l._section == s) { l.Focus(); l.Position = r._unresolvedOffset; l.hexBox1.Focus(); return; } } SectionEditor e = new SectionEditor(s as ModuleSectionNode); e.Show(); e.Position = r._unresolvedOffset; e.hexBox1.Focus(); }