예제 #1
0
 public ModifyForm(Modify hook, MethodDefinition method, Modify.InstructionData inst) : this(hook, method)
 {
     Instruction = inst;
     InsertBeforeButton.Visible = false;
     InsertAfterButton.Visible = false;
     SaveButton.Visible = true;
 }
예제 #2
0
 public ModifyForm(Modify hook, MethodDefinition method)
 {
     InitializeComponent();
     this.hook = hook;
     this.method = method;
     textBox = new TextBox();
     textBox.Dock = DockStyle.Fill;
     comboBox = new ComboBox();
     comboBox.Dock = DockStyle.Fill;
     comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
     comboBox.DisplayMember = "Text";
     comboBox.ValueMember = "Value";
     var ops = typeof(OpCodes).GetFields(BindingFlags.Static | BindingFlags.Public).OrderBy(f => f.Name);
     foreach (var op in ops)
         opcodes.Items.Add(op.Name.ToLower());
     var optypevalues = Enum.GetValues(typeof (Modify.OpType));
     foreach (var op in optypevalues)
         optypes.Items.Add(op);
     SaveButton.Visible = false;
 }