Inheritance: System.Windows.Forms.Form, IProcedureDialog
 public ProcedureDialog CreateDialog()
 {
     dlg = new ProcedureDialog(this);
     PopulateFields();
     dlg.Signature.TextChanged += Signature_TextChanged;
     return(dlg);
 }
示例#2
0
 public ProcedureDialog CreateDialog()
 {
     dlg = new ProcedureDialog(this);
     PopulateFields();
     dlg.Signature.TextChanged += Signature_TextChanged;
     return dlg;
 }
示例#3
0
 public ProcedureDialog CreateDialog()
 {
     dlg = new ProcedureDialog();
     PopulateFields();
     dlg.ArgumentList.SelectedIndexChanged += new EventHandler(ArgumentList_SelectedIndexChanged);
     dlg.Signature.TextChanged             += new EventHandler(Signature_TextChanged);
     return(dlg);
 }
 public ProcedureDialog CreateDialog()
 {
     dlg = new ProcedureDialog();
     PopulateFields();
     dlg.ArgumentList.SelectedIndexChanged += ArgumentList_SelectedIndexChanged;
     dlg.Signature.TextChanged += Signature_TextChanged;
     return dlg;
 }
示例#5
0
        private void EditSignature()
        {
            //$TODO: need "current program"
            IProcessorArchitecture arch = null; // Decompiler.Program.Architecture;
            var ser  = arch.CreateProcedureSerializer(new TypeLibraryLoader(arch, true), "stdapi");
            var proc = ser.Serialize(SelectedProcedureEntry.Value, SelectedProcedureEntry.Key);
            var i    = new ProcedureDialogInteractor(arch, proc);

            using (ProcedureDialog dlg = i.CreateDialog())
            {
                if (DialogResult.OK == UIService.ShowModalDialog(dlg))
                {
                    //$REVIEW: Need to pass InputFile into the SelectedProcedureEntry piece.
                    var program = Decompiler.Project.Programs[0];
                    program.UserProcedures[SelectedProcedureEntry.Key] =
                        i.SerializedProcedure;
                    ser = arch.CreateProcedureSerializer(new TypeLibraryLoader(arch, true), "stdapi");
                    SelectedProcedureEntry.Value.Signature =
                        ser.Deserialize(i.SerializedProcedure.Signature, SelectedProcedureEntry.Value.Frame);

                    canAdvance = false;
                }
            }
        }