Beispiel #1
0
        public void Setup(ClrDump clrDump, IAddressContainer instances, UIClrDumpModule parentModule = null)
        {
            ClrDump   = clrDump;
            Instances = instances;
            Icon      = Properties.Resources.formatting_dublicate_value_small;
            Name      = $"#{ClrDump.Id}";

            dlvInstances.InitColumns <InstanceInformation>();
            dlvInstances.SetUpAddressColumn <InstanceInformation>(parentModule ?? this);
            dlvInstances.SetUpTypeColumn <InstanceInformation>(parentModule ?? this);
            dlvInstances.AddSizeColumn(o => ((InstanceInformation)o).Address, ClrDump, o => ((InstanceInformation)o).ClrType);
            dlvInstances.AddSimpleValueColumn(o => ((InstanceInformation)o).Address, ClrDump, o => ((InstanceInformation)o).ClrType);
            dlvInstances.RebuildColumns();
            dlvInstances.SetTypeNameFilter <InstanceInformation>(regexFilterControl);
        }
        public void Setup(ClrDump clrDump, IAddressContainer instances, UIClrDumpModule parentModule=null)
        {
            ClrDump = clrDump;
            Instances = instances;
            Icon = Properties.Resources.formatting_dublicate_value_small;
            Name = $"#{ClrDump.Id}";

            dlvInstances.InitColumns<InstanceInformation>();
            dlvInstances.SetUpAddressColumn<InstanceInformation>(parentModule ?? this);
            dlvInstances.SetUpTypeColumn<InstanceInformation>(parentModule ?? this);
            dlvInstances.AddSizeColumn(o => ((InstanceInformation)o).Address, ClrDump, o => ((InstanceInformation)o).ClrType);
            dlvInstances.AddSimpleValueColumn(o => ((InstanceInformation)o).Address, ClrDump, o => ((InstanceInformation)o).ClrType);
            dlvInstances.RebuildColumns();
            dlvInstances.SetTypeNameFilter<InstanceInformation>(regexFilterControl);
        }
Beispiel #3
0
 public static void Create(ClrDump clrDump, IAddressContainer addresses, UIModule parent, Action <InstancesMixedModule> postInit, string name = null)
 {
     if (addresses == null)
     {
         MessageBox.Show("No instances selected !", "Error", MessageBoxButtons.OK);
         return;
     }
     UIModuleFactory.CreateModule <InstancesMixedModule>(
         mod => {
         mod.UIModuleParent = parent; mod.Setup(clrDump, addresses);
         if (name != null)
         {
             mod.Name = name;
         }
     },
         mod => postInit(mod)
         );
 }
 public static void Create(ClrDump clrDump, IAddressContainer addresses, UIModule parent, Action<InstancesMixedModule> postInit, string name = null)
 {
     if (addresses == null)
     {
         MessageBox.Show("No instances selected !", "Error", MessageBoxButtons.OK);
         return;
     }
     UIModuleFactory.CreateModule<InstancesMixedModule>(
         mod => {
             mod.UIModuleParent = parent; mod.Setup(clrDump, addresses);
             if (name != null)
             {
                 mod.Name = name;
             }
         },
         mod => postInit(mod)
         );
 }
 protected void Init(IAddressContainer addresses) => Addresses = addresses;
 public AddressList(ClrDump clrDump, ClrType clrType, IAddressContainer addresses) : this(clrDump, clrType) => Init(addresses);
 public ReferersInformation(ClrDump clrDump, ClrType clrType, MessageBus messageBus, IAddressContainer addresses) : this(clrDump, clrType, null, messageBus, 0)
 {
     for (int i = 0; i < addresses.Count; i++)
     {
         Instances.Add(addresses[i]);
     }
     Init();
 }
Beispiel #8
0
 protected void Init(IAddressContainer addresses)
 {
     Addresses = addresses;
 }
Beispiel #9
0
 public AddressList(ClrDump clrDump, ClrType clrType, IAddressContainer addresses) : this(clrDump, clrType)
 {
     Init(addresses);
 }