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"); } }
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"; })); } }
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 = "设备已断开链接"; })); } }