private void renderDataList(TreeNode root, SmxDataSection data) { root.Tag = new NodeData(delegate() { renderSectionHeaderDetail(data.SectionHeader); addDetailLine("datasize = {0} bytes", data.Header.DataSize); addDetailLine("memory = {0} bytes", data.Header.MemorySize); addDetailLine("dataoffs = 0x{0:x}", data.Header.dataoffs); endDetailUpdate(); }, data); root.Nodes.Add("byte view").Tag = new NodeData(delegate() { startDetailUpdate(); renderByteView(data.Reader(), (int)data.Header.DataSize); endDetailUpdate(); }, null); root.Nodes.Add("cell view").Tag = new NodeData(delegate() { renderHexView(data.Reader(), (int)data.Header.DataSize); }, null); root.Nodes.Add("string analysis").Tag = new NodeData(delegate() { renderStringAnalysis(data.Memory(), data.Reader(), (int)data.Header.DataSize); }, null); }
private void renderDataList(TreeViewItem root, SmxDataSection data) { root.Tag = new NodeData(delegate() { renderSectionHeaderDetail(data.SectionHeader); addDetailLine("datasize = {0} bytes", data.Header.DataSize); addDetailLine("memory = {0} bytes", data.Header.MemorySize); addDetailLine("dataoffs = 0x{0:x}", data.Header.dataoffs); endDetailUpdate(); }, data); var node = new TreeViewItem() { Header = "byte view" }; root.Items.Add(node); node.Tag = new NodeData(delegate() { renderByteView(data.Reader(), (int)data.Header.DataSize); }, null); node = new TreeViewItem() { Header = "cell view" }; root.Items.Add(node); node.Tag = new NodeData(delegate() { renderHexView(data.Reader(), (int)data.Header.DataSize); }, null); node = new TreeViewItem() { Header = "string analysis" }; root.Items.Add(node); node.Tag = new NodeData(delegate() { renderStringAnalysis(data.Memory(), data.Reader(), (int)data.Header.DataSize); }, null); }