예제 #1
0
파일: Tester.cs 프로젝트: pf2707/iphonefs
 void phone_Connect(object sender, ConnectEventArgs args)
 {
     System.Diagnostics.Trace.WriteLine(phone.DeviceName);
        System.Diagnostics.Trace.WriteLine(phone.DeviceType);
        System.Diagnostics.Trace.WriteLine(phone.DeviceVersion);
        System.Diagnostics.Trace.WriteLine(phone.IsJailbreak);
 }
예제 #2
0
        protected void OnDisconnect(ConnectEventArgs args)
        {
            ConnectEventHandler disconnect = this.Disconnect;

            if (disconnect != null)
            {
                disconnect(this, args);
            }
        }
예제 #3
0
        protected void OnConnect(ConnectEventArgs args)
        {
            ConnectEventHandler connect = this.Connect;

            if (connect != null)
            {
                connect(this, args);
            }
        }
        /// <summary>
        /// Raises the <see>Disconnect</see> event.
        /// </summary>
        /// <param name="args">A <see cref="ConnectEventArgs"/> that contains the event data.</param>
        protected static void OnDisconnect(ConnectEventArgs args)
        {
            ConnectEventHandler handler = DisconnectEH;

            if (handler != null)
            {
                handler(null, args);
            }
        }
예제 #5
0
        /// <summary>
        /// Raises the <see>Disconnect</see> event.
        /// </summary>
        /// <param name="args">A <see cref="ConnectEventArgs"/> that contains the event data.</param>
        protected void OnDisconnect(ConnectEventArgs args)
        {
            ConnectEventHandler handler = Disconnect;

            if (handler != null)
            {
                handler(this, args);
            }
        }
        void MobileDeviceConnected(object sender, Manzana.ConnectEventArgs args)
        {
            string DeviceName         = "(unknown name)";
            MobileDeviceInstance Inst = MobileDeviceInstanceManager.ConnectedDevices[args.Device];

            if (Inst != null)
            {
                DeviceName = Inst.DeviceName;
            }

            ReportIF.Log(String.Format("Mobile Device '{0}' connected", DeviceName));
            Inst.OnGenericProgress = MobileDeviceProgressCallback;

            Inst.TransferProgressDivisor = ReportIF.GetTransferProgressDivider();
        }
 void MobileDeviceDisconnected(object sender, Manzana.ConnectEventArgs args)
 {
     ReportIF.Error("Mobile Device disconnected during run!");
 }
예제 #8
0
        /// <summary>
        /// Raises the <see>Disconnect</see> event.
        /// </summary>
        /// <param name="args">A <see cref="ConnectEventArgs"/> that contains the event data.</param>
        protected static void OnDisconnect(ConnectEventArgs args)
        {
            ConnectEventHandler handler = DisconnectEH;

            if (handler != null)
            {
                handler(null, args);
            }
        }
	void MobileDeviceDisconnected(object sender, ConnectEventArgs args)
	{
	}
예제 #10
0
 protected void OnDisconnect(ConnectEventArgs args)
 {
     ConnectEventHandler disconnect = this.Disconnect;
     if (disconnect != null)
     {
         disconnect(this, args);
     }
 }
예제 #11
0
 protected void OnConnect(ConnectEventArgs args)
 {
     ConnectEventHandler connect = this.Connect;
     if (connect != null)
     {
         connect(this, args);
     }
 }
예제 #12
0
        /// <summary>
        /// Raises the <see>Disconnect</see> event.
        /// </summary>
        /// <param name="args">A <see cref="ConnectEventArgs"/> that contains the event data.</param>
        protected void OnDisconnect(ConnectEventArgs args)
        {
            ConnectEventHandler handler = Disconnect;

            if (handler != null)
            {
                handler(this, args);
            }
        }