示例#1
0
 private void OnCellClick(object sender, CellClickEventArgs e)
 {
     if (e.ClickCount == 2 && e.Model != null)
     {
         var addresses = Data;
         InstancesModule.Create(addresses, this, mod => RequestDockModule(mod));
     }
 }
示例#2
0
 public static void Display(UIModule parentModule, ClrDumpObject data)
 {
     if (data.ClrType.IsArray)
     {
         var    elementsAddresses = new ArrayElementsAddressContainer(data);
         var    addresses         = new AddressList(data.ClrDump, data.ClrType.ComponentType, elementsAddresses);
         string name = $"{data.ClrDump.Id} - Elements: {data.Address:X} [{data.ClrType.ComponentType.Name}]";
         InstancesModule.Create(addresses, parentModule, mod => DockModule(parentModule.MessageBus, mod), name);
     }
     else
     {
         UIModuleFactory.CreateModule <InstanceDetailsModule>(
             mod => { mod.UIModuleParent = parentModule; mod.Setup(data); },
             mod => DockModule(parentModule.MessageBus, mod, DockState.DockRight)
             );
     }
 }