static DeviceEventListener() { watcher_window = new DeviceWatcherWindow ("ipod-sharp DeviceEventListener Message Window"); watcher_window.DeviceArrived += new EventHandler<DeviceWindowEventArgs> (watcherWindow_DeviceArrived); watcher_window.DeviceRemoved += new EventHandler<DeviceWindowEventArgs>(watcherWindow_DeviceRemoved); foreach (string drive in Environment.GetLogicalDrives ()) { if (IsIpodDrive (drive [0])) devices.Add (drive [0], new IPod.Device(drive)); } }
static DeviceEventListener() { watcher_window = new DeviceWatcherWindow("ipod-sharp DeviceEventListener Message Window"); watcher_window.DeviceArrived += new EventHandler <DeviceWindowEventArgs> (watcherWindow_DeviceArrived); watcher_window.DeviceRemoved += new EventHandler <DeviceWindowEventArgs>(watcherWindow_DeviceRemoved); foreach (string drive in Environment.GetLogicalDrives()) { if (IsIpodDrive(drive [0])) { devices.Add(drive [0], new IPod.Device(drive)); } } }