protected void OnDisconnect(ITMDConnectEventArgs args)
        {
            ITMDConnectEventHandler disconnect = this.Disconnect;

            if (disconnect != null)
            {
                disconnect(this, args);
            }
        }
        protected void OnConnect(ITMDConnectEventArgs args)
        {
            ITMDConnectEventHandler connect = this.Connect;

            if (connect != null)
            {
                connect(this, args);
            }
        }
        protected void OnHostDetached(ITMDConnectEventArgs args)
        {
            ITMDConnectEventHandler hostDetached = this.HostDetached;

            if (hostDetached != null)
            {
                hostDetached(this, args);
            }
        }
Beispiel #4
0
 protected void OnDisconnect(ITMDConnectEventArgs args)
 {
     ITMDConnectEventHandler disconnect = this.Disconnect;
     if (disconnect != null)
     {
         disconnect(this, args);
     }
 }
Beispiel #5
0
 protected void OnConnect(ITMDConnectEventArgs args)
 {
     ITMDConnectEventHandler connect = this.Connect;
     if (connect != null)
     {
         connect(this, args);
     }
 }
 protected void OnHostDetached(ITMDConnectEventArgs args)
 {
     ITMDConnectEventHandler hostDetached = this.HostDetached;
     if (hostDetached != null)
     {
         hostDetached(this, args);
     }
 }
Beispiel #7
0
        private static void Iph_Connect(object sender, ITMDConnectEventArgs args)
        {

            Console.WriteLine("iTunesMobileDevice.dll Connected to " + iph.DeviceName);
            string dn = iph.DeviceName;
            string pn = iph.ProductName;
            string pv = iph.ProductVersion;
            string infoS = String.Format("connected to: {0} ({1}, iOS {2})", dn, pn, pv);
            Console.WriteLine("FMIP AMDeviceCopyValue: {0}", iph.RequestProperty("com.apple.fmip", "IsAssociated"));
            /*
            Console.WriteLine(infoS);
            //com.apple.mobile.battery
            //Console.WriteLine("AMDeviceCopyValue: {0}", iph.DeviceiTunesHasConnected);
            Console.WriteLine("Enabling WiFi: {0}",iph.EnableWiFiConnection());
            //Console.WriteLine("Disabling WiFi: {0}",iph.DisableWiFiConnection());
            */
        }
Beispiel #8
0
 private static void Lliph_HostAttached(object sender, ITMDConnectEventArgs args)
 {
     Console.WriteLine("iTMD.dll detected device attached to host.");
     Console.WriteLine(lliph.DeviceName);
 }