public MethodOverrideVM Edit(string title, MethodOverrideVM mo) { var dnlibPicker = new DnlibTypePicker(ownerWindow); var method = dnlibPicker.GetDnlibType <IMethodDefOrRef>(dnSpy_AsmEditor_Resources.Pick_Method, new FlagsDocumentTreeNodeFilter(VisibleMembersFlags.MethodDef), mo.MethodDeclaration, mo.OwnerModule); if (method == null) { return(null); } mo.MethodDeclaration = method; return(mo); }
public MethodOverrideVM Edit(string title, MethodOverrideVM mo) { var dnlibPicker = new DnlibTypePicker(ownerWindow); var method = dnlibPicker.GetDnlibType <IMethodDefOrRef>(new FlagsTreeViewNodeFilter(VisibleMembersFlags.MethodDef), mo.MethodDeclaration, mo.OwnerModule); if (method == null) { return(null); } mo.MethodDeclaration = method; return(mo); }
public EditMethodDef(ModuleDef ownerModule, Window ownerWindow) { this.ownerModule = ownerModule; this.dnlibTypePicker = new DnlibTypePicker(ownerWindow); }