Beispiel #1
0
 private void MapCdromDevice(ICdromDevice device)
 {
     lock (this) {
         foreach (IVolume volume in device)
         {
             if (volume is IDiscVolume)
             {
                 MapDiscVolume((IDiscVolume)volume);
             }
         }
     }
 }
Beispiel #2
0
 protected virtual void MapDiscDevice(ICdromDevice device)
 {
     lock (this) {
         foreach (IVolume volume in device)
         {
             if (volume is IDiscVolume)
             {
                 MapDiscVolume((IDiscVolume)volume);
             }
         }
     }
 }
Beispiel #3
0
 protected virtual void MapDiscDevice(ICdromDevice device)
 {
     lock (this) {
         foreach (IVolume volume in device) {
             if (volume is IDiscVolume) {
                 MapDiscVolume ((IDiscVolume) volume);
             }
         }
     }
 }
Beispiel #4
0
        public bool UnlockDoor()
        {
            ICdromDevice drive = Drive;

            return(drive != null?drive.UnlockDoor() : false);
        }
 private void MapCdromDevice (ICdromDevice device)
 {
     lock (this) {
         foreach (IVolume volume in device) {
             if (volume is IDiscVolume) {
                 MapDiscVolume ((IDiscVolume)volume);
             }
         }
     }
 }