/// <summary> /// Event handler for the SectorWritten event of the associated disk object. /// </summary> /// <param name="obj"></param> /// <param name="e"></param> private void SectorWrittenHandler(Object obj, SectorWrittenEventArgs e) { if (e.Track == DirectoryTrackPrimary) { directoryIsDirty = true; } }
/// <summary> /// Event handler for the SectorWritten event of the associated disk object. /// </summary> /// <param name="obj"></param> /// <param name="e"></param> private void SectorWrittenHandler(Object obj, SectorWrittenEventArgs e) { int lsn = SectorToLsn(e.Head, e.Track, e.Sector); if (lsn == IdentificationSector || lsn == AllocationMapSector) { DiskInfo = null; AllocationMap = null; } }
/// <summary> /// Event handler for the SectorWritten event of the associated disk object. /// </summary> /// <param name="obj"></param> /// <param name="e"></param> private void SectorWrittenHandler(Object obj, SectorWrittenEventArgs e) { if (e.Track == DirectoryTrackPrimary) { directoryIsDirty = true; } }
/// <summary> /// Event handler for the SectorWritten event of the associated disk object. /// </summary> /// <param name="obj"></param> /// <param name="e"></param> private void SectorWrittenHandler(Object obj, SectorWrittenEventArgs e) { int lsn = SectorToLsn(e.Head, e.Track, e.Sector); if (lsn == IdentificationSector || lsn == AllocationMapSector) { DiskInfo = null; AllocationMap = null; } }
/// <summary> /// Signals that a sector has been written and invokes any registered event handles for the SectorWritten event. /// </summary> /// <param name="e"></param> private void OnSectorWritten(SectorWrittenEventArgs e) { if (SectorWritten != null) SectorWritten(this, e); }