Exemple #1
0
 private void OnCDChange(DeviceChangeEventArgs ea)
 {
     if (DeviceChange != null)
     {
         DeviceChange(this, ea);
     }
 }
Exemple #2
0
 private void OnDeviceChange(DEV_BROADCAST_VOLUME DevDesc, DeviceChangeEventType EventType)
 {
     if (DeviceChange != null)
     {
         foreach (char ch in DevDesc.Drives)
         {
             DeviceChangeEventArgs a = new DeviceChangeEventArgs(ch, EventType);
             DeviceChange(this, a);
         }
     }
 }
 private void NotWnd_DeviceChange(object sender, DeviceChangeEventArgs ea)
 {
   switch (ea.ChangeType)
   {
     case DeviceChangeEventType.VolumeInserted:
       OnVolumeInserted(ea.Drive);
       break;
     case DeviceChangeEventType.VolumeRemoved:
       OnVolumeRemoved(ea.Drive);
       break;
   }
 }
        private void NotWnd_DeviceChange(object sender, DeviceChangeEventArgs ea)
        {
            switch (ea.ChangeType)
            {
            case DeviceChangeEventType.VolumeInserted:
                OnVolumeInserted(ea.Drive);
                break;

            case DeviceChangeEventType.VolumeRemoved:
                OnVolumeRemoved(ea.Drive);
                break;
            }
        }
Exemple #5
0
        private void NotWnd_DeviceChange(object sender, DeviceChangeEventArgs ea)
        {
            if (ea.Drive != m_Drive)
            {
                return;
            }
            TocValid = false;
            switch (ea.ChangeType)
            {
            case DeviceChangeEventType.MediaInserted:
                OnCDInserted(ea.Drive);
                break;

            case DeviceChangeEventType.MediaRemoved:
                OnCDRemoved(ea.Drive);
                break;
            }
        }
 private void OnDeviceChange(DEV_BROADCAST_VOLUME DevDesc, DeviceChangeEventType EventType)
 {
   if (DeviceChange != null)
   {
     foreach (char ch in DevDesc.Drives)
     {
       DeviceChangeEventArgs a = new DeviceChangeEventArgs(ch, EventType);
       DeviceChange(this, a);
     }
   }
 }
 private void OnCDChange(DeviceChangeEventArgs ea)
 {
   if (DeviceChange != null)
   {
     DeviceChange(this, ea);
   }
 }
Exemple #8
0
 private void NotWnd_DeviceChange(object sender, DeviceChangeEventArgs ea)
 {
   if (ea.Drive != m_Drive)
   {
     return;
   }
   TocValid = false;
   switch (ea.ChangeType)
   {
     case DeviceChangeEventType.MediaInserted:
       OnCDInserted(ea.Drive);
       break;
     case DeviceChangeEventType.MediaRemoved:
       OnCDRemoved(ea.Drive);
       break;
   }
 }