Ejemplo n.º 1
0
 private unsafe void NotifyCallback(ref AMDeviceNotificationCallbackInfo callback)
 {
     if (callback.msg == NotificationMessage.Connected)
     {
         this.iPhoneHandle = callback.dev;
         if (this.ConnectToPhone())
         {
             this.OnConnect(new ConnectEventArgs(callback));
         }
     }
     else if (callback.msg == NotificationMessage.Disconnected)
     {
         this.connected = false;
         this.OnDisconnect(new ConnectEventArgs(callback));
     }
 }
Ejemplo n.º 2
0
 private unsafe void NotifyCallback(ref AMDeviceNotificationCallbackInfo callback)
 {
     if (callback.msg == NotificationMessage.Connected)
     {
         this.iPhoneHandle = callback.dev;
         if (this.ConnectToPhone())
         {
             this.OnConnect(new ConnectEventArgs(callback));
         }
     }
     else if (callback.msg == NotificationMessage.Disconnected)
     {
         this.connected = false;
         this.OnDisconnect(new ConnectEventArgs(callback));
     }
 }
Ejemplo n.º 3
0
 internal unsafe ConnectEventArgs(AMDeviceNotificationCallbackInfo cbi)
 {
     this.message = cbi.msg;
     this.device = cbi.dev;
 }
Ejemplo n.º 4
0
 internal unsafe ConnectEventArgs(AMDeviceNotificationCallbackInfo cbi)
 {
     this.message = cbi.msg;
     this.device  = cbi.dev;
 }