internal void __MarkInactive() { mDriveId = null; if (MediaAvailableChanged != null) { MediaAvailableChanged(this, null); } }
internal void __MarkActive(char driveLetter, System.UInt64 sizeBytes) { mDriveId = new UsbDriveActive(driveLetter, sizeBytes); if (MediaAvailableChanged != null) { MediaAvailableChanged(this, null); } }
public override bool Equals(object obj) { if (obj is UsbDriveActive) { UsbDriveActive rhs = (UsbDriveActive)obj; return(rhs.mDriveLetter == this.mDriveLetter); } else { return(false); } }