private void OnVolumeRemoved(object source, VolumeEventArgs e)
 {
     if (base.FullName.StartsWith(e.DriveChar + ":", FileSystemItem.ComparisonRule))
     {
         this.ResetVisualCache();
         base.RaiseChanged(WatcherChangeTypes.Deleted, this);
     }
 }
 private void RaiseVolumeEvent(DriveChars chars, EventHandler<VolumeEventArgs> eventHandler)
 {
     if (eventHandler != null)
     {
         uint num = 1;
         for (int i = 0; i < 0x1a; i++)
         {
             DriveChars driveChar = chars & ((DriveChars) (num << i));
             if (driveChar != DriveChars.None)
             {
                 VolumeEventArgs e = new VolumeEventArgs(driveChar);
                 eventHandler(null, e);
             }
         }
     }
     this.RaiseChanged(EventArgs.Empty);
 }
 public void RaiseRemoved(VolumeEventArgs e)
 {
     if (this.Removed != null)
     {
         this.Removed(null, e);
     }
 }
 public void RaiseArrived(VolumeEventArgs e)
 {
     if (this.Arrived != null)
     {
         this.Arrived(null, e);
     }
 }