Beispiel #1
0
 private void ViewFileSystem(LogicalDevice volume)
 {
     CloseFileSystem();
     fileManager = new FATManager(volume);
     RefreshFiles();
     lstFiles.Select();
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FATManager"/> class.
 /// </summary>
 /// <param name="device">The logical FAT12 or FAT16 device.</param>
 public FATManager(LogicalDevice device)
 {
     if (!device.Partition.IsFAT)
     {
         throw new ArgumentException("Logical device must be a compatible FAT (i.e. FAT12 or FAT16) device.");
     }
     this.device    = device;
     currentCluster = 0;
 }
Beispiel #3
0
        private void btnView_Click(object sender, System.EventArgs e)
        {
            if (tvwDevices.SelectedNode == null)
            {
                return;
            }
            if (tvwDevices.SelectedNode.Tag.GetType() != typeof(LogicalDevice))
            {
                return;
            }
            LogicalDevice volume = (LogicalDevice)tvwDevices.SelectedNode.Tag;

            if (!volume.Partition.IsFAT)
            {
                MessageBox.Show(this, "'" + volume.Partition.PartitionLabel + "' file system not supported.", "Undelete");
                return;
            }
            ViewFileSystem(volume);
        }
 private void ViewFileSystem(LogicalDevice volume)
 {
     CloseFileSystem();
     fileManager = new FATManager(volume);
     RefreshFiles();
     lstFiles.Select();
 }