Esempio n. 1
0
 private void OnCDChange(DeviceChangeEventArgs ea)
 {
     if (DeviceChange != null)
     {
         DeviceChange(this, ea);
     }
 }
Esempio n. 2
0
 private void OnDeviceChange(DEV_BROADCAST_VOLUME DevDesc, DeviceChangeEventType EventType)
 {
     if (DeviceChange != null)
     {
         foreach (char ch in DevDesc.Drives)
         {
             var a = new DeviceChangeEventArgs(ch, EventType);
             DeviceChange(this, a);
         }
     }
 }
Esempio n. 3
0
        private void NotWnd_DeviceChange(object sender, DeviceChangeEventArgs ea)
        {
            if (ea.Drive == m_Drive)
            {
                TocValid = false;
                switch (ea.ChangeType)
                {
                case DeviceChangeEventType.DeviceInserted:
                    OnCDInserted();
                    break;

                case DeviceChangeEventType.DeviceRemoved:
                    OnCDRemoved();
                    break;
                }
            }
        }
Esempio n. 4
0
 private void NotWnd_DeviceChange(object sender, DeviceChangeEventArgs ea)
 {
     if (ea.Drive == m_Drive)
     {
         TocValid = false;
         switch (ea.ChangeType)
         {
             case DeviceChangeEventType.DeviceInserted:
                 OnCDInserted();
                 break;
             case DeviceChangeEventType.DeviceRemoved:
                 OnCDRemoved();
                 break;
         }
     }
 }
 private void OnDeviceChange(DEV_BROADCAST_VOLUME DevDesc, DeviceChangeEventType EventType)
 {
     if (DeviceChange != null)
     {
         foreach (char ch in DevDesc.Drives)
         {
             var a = new DeviceChangeEventArgs(ch, EventType);
             DeviceChange(this, a);
         }
     }
 }
 private void OnCDChange(DeviceChangeEventArgs ea)
 {
     if (DeviceChange != null)
     {
         DeviceChange(this, ea);
     }
 }