All pastes #759356 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-11-03 01:48 UTC
rendered paste body
//load pcap devices into combobox
            //foreach(PcapDevice p in SharpPcap.GetAllDevices()
            PcapDeviceList pList = SharpPcap.GetAllDevices();
            for (int i = 0; i < pList.Count; i++)
            {
                this.toolStripComboBoxPcapDevList.Items.Add(pList[i].PcapDescription);
            }
            //todo make this save a default value maby?
            this.toolStripComboBoxPcapDevList.SelectedIndex = 0;