Exemplo n.º 1
0
 private void btnDump_Click(object sender, EventArgs e)
 {
     FAT.FATReader fatReader = null;
       try
       {
     fatReader = new FAT.FATReader(txtFolder.Text, logger);
     fatReader.Open(FileAccess.Read);
     fatReader.DumpFAT();
       }
       finally
       {
     if (fatReader != null)
       fatReader.Close();
       }
 }
Exemplo n.º 2
0
        private void btnDumpAndSort_Click(object sender, EventArgs e)
        {
            FAT.FATReader fatReader = null;
              DiskStructure tagDiskStructure = null;
              try
              {
            tagDiskStructure = new DiskStructure(txtFolder.Text);
            tagDiskStructure.Sort();

            fatReader = new FAT.FATReader(txtFolder.Text, logger);
            fatReader.Open(FileAccess.Read);
            fatReader.Sort(tagDiskStructure);
            fatReader.DumpFAT();
              }
              finally
              {
            if (fatReader != null)
              fatReader.Close();
              }
        }