private void dissectNodesToolStripMenuItem_Click(object sender, EventArgs e) { var hexNodes = selectedNodes.Where(h => h.Node is BaseHexNode); if (hexNodes.Any()) { NodeDissector.DissectNodes(hexNodes.Select(h => (BaseHexNode)h.Node), Memory); ClearSelection(); } }
private void dissectNodesToolStripMenuItem_Click(object sender, EventArgs e) { var hexNodes = selectedNodes.Where(h => h.Node is BaseHexNode).ToList(); if (hexNodes.Any()) { foreach (var g in hexNodes.GroupBy(n => n.Node.ParentNode)) { NodeDissector.DissectNodes(g.Select(h => (BaseHexNode)h.Node), g.First().Memory); } ClearSelection(); } }
private void dissectNodesToolStripMenuItem_Click(object sender, EventArgs e) { var hexNodes = memoryViewControl.GetSelectedNodes().Where(h => h.Node is BaseHexNode).ToList(); if (!hexNodes.Any()) { return; } foreach (var g in hexNodes.GroupBy(n => n.Node.GetParentContainer())) { NodeDissector.DissectNodes(g.Select(h => (BaseHexNode)h.Node), g.First().Memory); } ClearSelection(); }