private void RecoveryConnectDevice(object sender, DeviceRecoveryConnectEventArgs args)
 {
     if (args.Message == MobileDevice.Enumerates.ConnectNotificationMessage.Connected)
     {
         Console.WriteLine("Recovery mode device is connected");
     }
     if (args.Message == MobileDevice.Enumerates.ConnectNotificationMessage.Disconnected)
     {
         Console.WriteLine("Device has broken link");
     }
 }
示例#2
0
 private void RecoveryConnectDevice(object sender, DeviceRecoveryConnectEventArgs args)
 {
     if (args.Message == MobileDevice.Enumerates.ConnectNotificationMessage.Connected)
     {
         this.Invoke(new Action(() =>
         {
             StateLabel.Text = "Recovery mode device is connected";
         }));
     }
     if (args.Message == MobileDevice.Enumerates.ConnectNotificationMessage.Disconnected)
     {
         this.Invoke(new Action(() =>
         {
             StateLabel.Text = "Device has broken link";
         }));
     }
 }
示例#3
0
 private void RecoveryConnectDevice(object sender, DeviceRecoveryConnectEventArgs args)
 {
     if (args.Message == ConnectNotificationMessage.Connected)
     {
         this.Invoke(new Action(() =>
         {
             StateLabel.Text = "恢复模式设备已连接";
         }));
     }
     if (args.Message == ConnectNotificationMessage.Disconnected)
     {
         this.Invoke(new Action(() =>
         {
             StateLabel.Text = "设备已断开链接";
         }));
     }
 }