// Token: 0x060000FB RID: 251 RVA: 0x0000687C File Offset: 0x00004A7C
		protected void OnConnect(ConnectEventArgs args)
		{
			ConnectEventHandler connect = this.Connect;
			if (connect != null)
			{
				connect(this, args);
			}
		}
Beispiel #2
0
        // Token: 0x060000FB RID: 251 RVA: 0x0000687C File Offset: 0x00004A7C
        protected void OnConnect(ConnectEventArgs args)
        {
            ConnectEventHandler connect = this.Connect;

            if (connect != null)
            {
                connect(this, args);
            }
        }
Beispiel #3
0
        // Token: 0x060000FC RID: 252 RVA: 0x000068A0 File Offset: 0x00004AA0
        protected void OnDisconnect(ConnectEventArgs args)
        {
            ConnectEventHandler disconnect = this.Disconnect;

            if (disconnect != null)
            {
                disconnect(this, args);
            }
        }
Beispiel #4
0
 // Token: 0x0600002B RID: 43 RVA: 0x00002A64 File Offset: 0x00000C64
 public iPhoneXE(ConnectEventArgs deviceArgs, bool allowAFC2, iPhoneXEDelegate delObj)
 {
     this._delegateObject = delObj;
     this.iPhoneHandle = deviceArgs.Device;
     string newService = "com.apple.afc";
     if (allowAFC2)
     {
         newService = "com.apple.afc2";
     }
     this.nolock_ConnectToService(newService, false);
 }
		// Token: 0x060000FC RID: 252 RVA: 0x000068A0 File Offset: 0x00004AA0
		protected void OnDisconnect(ConnectEventArgs args)
		{
			ConnectEventHandler disconnect = this.Disconnect;
			if (disconnect != null)
			{
				disconnect(this, args);
			}
		}
Beispiel #6
0
 // Token: 0x06000033 RID: 51 RVA: 0x00002DA8 File Offset: 0x00000FA8
 public bool eventArgsContainDeviceHandle(ConnectEventArgs args)
 {
     return args.Device == this.iPhoneHandle;
 }
Beispiel #7
0
 // Token: 0x0600002C RID: 44 RVA: 0x00002B18 File Offset: 0x00000D18
 public bool ConnectToPhone(ConnectEventArgs deviceArgs, bool allowAFC2)
 {
     bool result;
     if (deviceArgs.Message == NotificationMessage.Connected)
     {
         this.iPhoneHandle = deviceArgs.Device;
         string newService = "com.apple.afc";
         if (allowAFC2)
         {
             newService = "com.apple.afc2";
         }
         bool flag = false;
         lock (this)
         {
             flag = this.nolock_ConnectToService(newService, false);
         }
         result = flag;
     }
     else
     {
         result = false;
     }
     return result;
 }