c# - Change SharpPcap ICaptureDevice properties inside my ComboBox -


in order receivedall machine adapters using:

capturedevicelist adapters = capturedevicelist.instance; 

this returns list of available adapters.

this combobox adapter selectedindexchanged method:

private void cbadapter_selectedindexchanged(object sender, eventargs e) {     combobox cmb = sender combobox;     icapturedevice selectedadapter = cmb.selecteditem icapturedevice;     adapter = cbadapter.selectedindex;     icapturedevice selectednic = cbadapter.selecteditem icapturedevice; } 

after command combobox show interface name inside name additional characters example: interface: name: rpcap://\device\npf_{53418afd-2965-4f99-bcaa-ecfb8b993b7b}

my question: possible edit adapter id {53418afd-2965-4f99-bcaa-ecfb8b993b7b} or maybe using other adapter properties name instead of id?


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -