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(); } }
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(); } }