Changeset 1998


Ignore:
Timestamp:
5/1/2010 9:42:21 AM (4 years ago)
Author:
lowjoel
Message:

Add the locally mounted network drives as items which can have their unused space erased. Addresses #237.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser/TaskDataSelectionForm.cs

    r1802 r1998  
    2424using System.ComponentModel; 
    2525using System.Data; 
     26using System.Linq; 
    2627using System.Drawing; 
    2728using System.Text; 
     
    5758 
    5859            //Populate the drives list 
    59             foreach (VolumeInfo volume in VolumeInfo.Volumes) 
     60            foreach (VolumeInfo volume in VolumeInfo.Volumes.Concat(VolumeInfo.NetworkDrives)) 
    6061            { 
    6162                DriveType driveType = volume.VolumeType; 
    6263                if (driveType != DriveType.Unknown && 
    6364                    driveType != DriveType.NoRootDirectory && 
    64                     driveType != DriveType.CDRom && 
    65                     driveType != DriveType.Network) 
     65                    driveType != DriveType.CDRom) 
    6666                { 
    6767                    //Skip drives which are not mounted: we cannot erase their unused space. 
Note: See TracChangeset for help on using the changeset viewer.