public MainForm() { InitializeComponent(); DumpReports.PrintMethod = this.Print; DumpReports.PrintLineMethod = this.PrintLine; _lookup = InstrumentSymbolLookup.Load(); updateInstrumentSymbolList(_lookup); }
private void updateInstrumentSymbolList(InstrumentSymbolLookup lookup) { listViewInstruments.Items.Clear(); string[] subitems = new string[2]; foreach (uint iid in lookup.Symbols.Keys) { subitems[1] = lookup.Symbols[iid]; var item = new ListViewItem(subitems); item.Text = iid.ToString(); listViewInstruments.Items.Add(item); } }