private void ResetAdb(bool isResetDevice = true) { listLogs.Clear(); txtLogcat.Clear(); textBoxFilter.Clear(); searchData.Reset(); List <Device> list = adb.adbDevices(); if (list != null && list.Count > 0) { if (isResetDevice) { List <string> comString = new List <string>(); foreach (Device dev in list) { comString.Add(dev.name); } comboBoxDevices.DataSource = comString; } } else { comboBoxDevices.DataSource = new String[] { "没有设备" }; return; } buttonSwitch.Text = "Stop"; comboBoxDebugLevel.DataSource = new String[] { "Verbose", "Info", "Warning", "Err" }; adb.logcat(this); }