private void GetDeviceInfo(object sender, EventArgs e) { byte[] serial = new byte[100]; NumOfCurDevice = this.cbb_DeviceInfo.SelectedIndex + 1; //NumOfCurDevice = 1; int ret = AsuInvoke.Asu_GetDeviceInfo(NumOfCurDevice, out serial); if (ret == 3) { Print("获取设备 " + NumOfCurDevice + " 信息成功,序列号为:" + Encoding.UTF8.GetString(serial)); } else { Print("获取设备 " + NumOfCurDevice + " 信息失败"); } }