Ejemplo n.º 1
0
 private void 启用ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (DGVUSBList.CurrentRow != null)
     {
         string id = DGVUSBList.CurrentRow.Cells["DGVUSBList_InstanceID"].Value.ToString();
         R.Toast.Show("启用 USB", DGVUSBList.CurrentRow.Index + " : " + id);
         DeviceHelper.EnableDevice(new List <USBDeviceModel>()
         {
             new USBDeviceModel()
             {
                 ID = id
             }
         });
     }
     DeviceHelper.GetAllDevice();
 }