예제 #1
0
        private void GetDeviceNum(object sender, EventArgs e)
        {
            int ret = AsuInvoke.Asu_GetDeviceNum();

            if (ret == 0)
            {
                CountOfDevice = 0;
                this.cbb_DeviceInfo.Items.Add("No Device Found");
                this.cbb_DeviceInfo.SelectedIndex = 0;
                Print("没有设备连接");
            }
            else
            {
                CountOfDevice = ret;
                while (ret > 0)
                {
                    this.cbb_DeviceInfo.Items.Add(ret);
                    ret--;
                }
                Print("有 " + ret + " 台设备连接");
            }
        }