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); }
protected void OnDisconnect(ConnectEventArgs args) { ConnectEventHandler disconnect = this.Disconnect; if (disconnect != null) { disconnect(this, args); } }
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); } }
/// <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!"); }
void MobileDeviceDisconnected(object sender, ConnectEventArgs args) { }