Пример #1
0
        public MainForm()
        {
            InitializeComponent();

            DumpReports.PrintMethod     = this.Print;
            DumpReports.PrintLineMethod = this.PrintLine;

            _lookup = InstrumentSymbolLookup.Load();
            updateInstrumentSymbolList(_lookup);
        }
Пример #2
0
        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);
            }
        }