void Device_IPodConnected(SharePodLib.IPod iPodin) { if (MessageBox.Show("iPod/iPhone detected ! Do you want to connected to it ?", "iPod/iPhone detected", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes) { this.iPod = iPodin; NI.BalloonTipIcon = ToolTipIcon.Info; NI.BalloonTipText = "Device connected."; NI.BalloonTipTitle = "Device connected"; NI.ShowBalloonTip(3); //statusIpod.Text = iPod.DeviceInfo.SerialNumber.ToString(); } }
void Device_IPodDisconnected(EventArgs args) { MessageBox.Show("iPod/iPhone disconnected !", "iPod/iPhone disconnected", MessageBoxButtons.OK, MessageBoxIcon.Information); iPod = null; }