예제 #1
0
 private void OnCDChange(DeviceChangeEventArgs ea)
 {
     if (DeviceChange != null)
     {
         DeviceChange(this, ea);
     }
 }
예제 #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);
         }
     }
 }
예제 #3
0
        private void NotWnd_DeviceChange(object sender, DeviceChangeEventArgs ea)
        {
            if (ea.Drive == this.m_Drive)
            {
                switch (ea.ChangeType)
                {
                case DeviceChangeEventType.DeviceInserted:
                    this.OnCDInserted();
                    break;

                case DeviceChangeEventType.DeviceRemoved:
                    this.TocValid = false;
                    this.OnCDRemoved();
                    break;
                }
            }
        }
예제 #4
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);
     }
   }
 }
예제 #5
0
 private void OnCDChange(DeviceChangeEventArgs ea)
 {
   if (DeviceChange != null)
   {
     DeviceChange(this, ea);
   }
 }
예제 #6
0
      private void NotWnd_DeviceChange(object sender, DeviceChangeEventArgs ea)
      {
          if (ea.Drive == this.m_Drive)
          {
              switch (ea.ChangeType)
              {
                  case DeviceChangeEventType.DeviceInserted:
                      this.OnCDInserted();
                      break;

                  case DeviceChangeEventType.DeviceRemoved:
                      this.TocValid = false;
                      this.OnCDRemoved();
                      break;
              }
          }
      }