Inheritance: IPod.Device
Ejemplo n.º 1
0
        private void AddVolume(Volume volume)
        {
            try {
                HalDevice device = new HalDevice (volume);

                devices[volume.Udi] = device;
                EmitAdded (device);
            } catch (Exception e) {
                Console.Error.WriteLine ("ipod-sharp: Failed to add device: " + e);
            }
        }
Ejemplo n.º 2
0
        private void AddVolume(Volume volume)
        {
            try {
                HalDevice device = new HalDevice(volume);

                devices[volume.Udi] = device;
                EmitAdded(device);
            } catch (Exception e) {
                Console.Error.WriteLine("ipod-sharp: Failed to add device: " + e);
            }
        }
Ejemplo n.º 3
0
        private void RemoveVolume(string udi, bool unwatch)
        {
            if (devices.ContainsKey(udi))
            {
                HalDevice device = devices[udi];
                devices.Remove(udi);

                if (unwatch)
                {
                    UnwatchForMount(udi);
                }

                EmitRemoved(device);
            }
        }