示例#1
0
        private void RefreshDeviceList()
        {
            List <string> deviceList = ADBHelper.GetDeviceList();

            comboBoxDevices.Items.Clear();

            if (deviceList.Count == 0)
            {
                return;
            }

            foreach (string curItem in deviceList)
            {
                comboBoxDevices.Items.Add(curItem);
            }

            comboBoxDevices.SelectedIndex = 0;
        }
示例#2
0
 private void comboBoxDevices_SelectedIndexChanged(object sender, EventArgs e)
 {
     labelDeviceInfo.Text = "Model:" + ADBHelper.GetDeviceModel(comboBoxDevices.SelectedItem.ToString());
 }