private void buttonResetFT283_Click(object sender, EventArgs e) { FT232HListItem li = listBoxFT232H.SelectedItem as FT232HListItem; if (null != li) { li.Ft232H.Reset(); } }
private void buttonReload_Click(object sender, EventArgs e) { emptyLists(); Update(); finder = new RadioPanelUsb.Finder(); System.Collections.Generic.List <RadioPanelUsb.FrontPanel> panels = finder.listDevices(); foreach (RadioPanelUsb.FrontPanel fp in panels) { FpListItem fpi = new FpListItem(fp); listBoxAvailable.Items.Add(fpi); } System.Collections.Generic.List <RadioPanelUsb.FT232H> ft232s = finder.listFT232HDevices(); foreach (RadioPanelUsb.FT232H fp in ft232s) { FT232HListItem fpi = new FT232HListItem(fp); listBoxFT232H.Items.Add(fpi); } }