Пример #1
0
        private void Iph_Connect(object sender, ConnectEventArgs args)
        {
            if (iph.IsConnected)
            {
                label4.Text = "Connected to [" + iph.DeviceProductType + "] " + iph.DeviceName + " iOS " + iph.ProductVersion;
                setStatus("Fetching Device Information...");
                Dictionary <string, dynamic> battInfo = iph.RequestBatteryInfo();
                setStatus("Processing Information...");

                /*
                 * foreach (KeyValuePair<string, dynamic> kvp in battInfo)
                 * {
                 *  MessageBox.Show(kvp.Key+" : "+kvp.Value.ToString());
                 * }
                 */
                int  cyclecount      = (int)battInfo["CycleCount"];
                int  designcapacity  = (int)battInfo["DesignCapacity"];
                int  currentcapacity = (int)battInfo["FullChargeCapacity"];
                bool gasgauge        = battInfo["GasGaugeCapability"] == true;
                bool fullycharged    = battInfo["FullyCharged"] == true;
                bool charging        = battInfo["BatteryIsCharging"] == true;
                int  currentCharge   = (int)battInfo["BatteryCurrentCapacity"];
                label6.Text  += cyclecount.ToString();
                label7.Text  += designcapacity.ToString();
                label8.Text  += currentcapacity.ToString();
                label9.Text  += gasgauge.ToString();
                label10.Text += fullycharged.ToString();
                label11.Text += currentCharge.ToString();
                label12.Text += charging.ToString();
                setStatus("Idle.");
            }
        }
Пример #2
0
        private void Iph_Connect(object sender, ConnectEventArgs args)
        {
            if (aifon.IsConnected)
            {
                label1.Text = "Connectado a [" + aifon.DeviceProductType + "] " + aifon.DeviceName + " iOS " + aifon.ProductVersion;

                Dictionary <string, dynamic> infoBateria = aifon.RequestBatteryInfo();

                //iCloud Activo o no?
                if (aifon.FindMyiPhoneEnabled == true)
                {
                    label4.Text = "iCloud Activado";
                }
                else
                {
                    label4.Text = "iCloud Desactivado";
                }


                /////////////////////////////////////////////
                //      INFORMACION DEL DISPOSITIVO        //
                /////////////////////////////////////////////

                //Version de iOS
                versioniOS.Text = "Version " + aifon.DeviceVersion + "";


                //Serial de Placa
                serialPlaca.Text = "[" + aifon.DeviceSerial + "]";


                //Numero de Telefono
                numeroTlf.Text = "N° " + aifon.DevicePhoneNumber + "";


                //IMEI
                imei.Text = "N° " + aifon.InternationalMobileEquipmentIdentity + "";


                //Version del Baseband
                versionBB.Text = "V " + aifon.DeviceBasebandVersion + "";


                //Operador
                if (aifon.IInternationalMobileSubscriberIdentity == "734047500395934")
                {
                    operador.Text = "Movistar VE";
                }



                //Tiene o no tiene Jailbreak
                if (aifon.IsJailbreak == true)
                {
                    JailbreaK.Text = "Tiene Jailbreak!!";
                }
                else
                {
                    JailbreaK.Text = "Sin Jailbreak!!";
                }
            }
        }