Ejemplo n.º 1
0
 /// <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;
     }
 }
Ejemplo n.º 2
0
        /// <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;
            }
        }
Ejemplo n.º 3
0
 /// <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;
     }
 }
Ejemplo n.º 4
0
 /// <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;
     }
 }
Ejemplo n.º 5
0
 /// <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);
 }