示例#1
0
 public DeclSecurityVM(DeclSecurityOptions options, ModuleDef ownerModule, IDecompilerManager decompilerManager, TypeDef ownerType, MethodDef ownerMethod)
 {
     this.ownerModule                    = ownerModule;
     this.decompilerManager              = decompilerManager;
     this.ownerType                      = ownerType;
     this.ownerMethod                    = ownerMethod;
     this.origOptions                    = options;
     this.CustomAttributesVM             = new CustomAttributesVM(ownerModule, decompilerManager);
     CustomAttributesVM.PropertyChanged += CustomAttributesVM_PropertyChanged;
     this.DeclSecVerEnumList             = new EnumListVM(declSecVerList, (a, b) => OnDeclSecVerChanged());
     this.SecurityActionEnumList         = new EnumListVM(secActList, (a, b) => OnSecurityActionChanged());
     this.SecurityAttributesVM           = new SecurityAttributesVM(ownerModule, decompilerManager, ownerType, ownerMethod);
     this.SecurityAttributesVM.Collection.CollectionChanged += SecurityAttributesVM_CollectionChanged;
     Reinitialize();
 }
示例#2
0
 public DeclSecurityVM(DeclSecurityOptions options, ModuleDef ownerModule, Language language, TypeDef ownerType, MethodDef ownerMethod)
 {
     this.ownerModule                    = ownerModule;
     this.language                       = language;
     this.ownerType                      = ownerType;
     this.ownerMethod                    = ownerMethod;
     this.origOptions                    = options;
     this.customAttributesVM             = new CustomAttributesVM(ownerModule, language);
     CustomAttributesVM.PropertyChanged += CustomAttributesVM_PropertyChanged;
     this.declSecVerEnumListVM           = new EnumListVM(declSecVerList, (a, b) => OnDeclSecVerChanged());
     this.securityActionEnumListVM       = new EnumListVM(secActList, (a, b) => OnSecurityActionChanged());
     this.securityAttributesVM           = new SecurityAttributesVM(ownerModule, language, ownerType, ownerMethod);
     this.SecurityAttributesVM.Collection.CollectionChanged += SecurityAttributesVM_CollectionChanged;
     Reinitialize();
 }