Inheritance: System.Windows.Forms.NativeWindow, IDisposable
Beispiel #1
0
        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));
            }
        }
Beispiel #2
0
        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));
                }
            }
        }