void RefreshMsilView() { MsilView.BeginUpdate(); InstructionMap.Clear(); MsilView.Items.Clear(); if (SelectedNode == null || !SelectedNode.LoadMsil()) { MsilView.EndUpdate(); return; } foreach (var inst in SelectedNode.Msil) { var row = new CodeRow(inst); MsilView.Items.Add(row); InstructionMap[inst.Offset] = row; } MsilView.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent); MsilView.EndUpdate(); }