Changeset 2173
- Timestamp:
- 06/13/10 10:03:25 (3 years ago)
- Location:
- trunk/eraser
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
Eraser.Util/VolumeInfo.cs (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser
- Property svn:mergeinfo changed
/branches/eraser6/6.0 merged: 2172
- Property svn:mergeinfo changed
-
trunk/eraser/Eraser.Util/VolumeInfo.cs
r2170 r2173 92 92 private List<string> GetLocalVolumeMountPoints() 93 93 { 94 if (!IsReady)95 throw new InvalidOperationException("The volume has not been mounted or is not " +96 "currently ready.");97 98 94 List<string> result = new List<string>(); 99 95 … … 410 406 get 411 407 { 412 if (!IsReady)413 throw new InvalidOperationException("The volume has not been mounted or is not " +414 "currently ready.");415 408 return (DriveType)NativeMethods.GetDriveType(VolumeId); 416 409 } … … 604 597 get 605 598 { 606 if (!IsReady)607 throw new InvalidOperationException("The volume has not been mounted or is not " +608 "currently ready.");609 610 599 List<string> paths = VolumeType == DriveType.Network ? 611 600 GetNetworkMountPoints() : GetLocalVolumeMountPoints(); … … 620 609 public bool IsMounted 621 610 { 622 get { return IsReady &&MountPoints.Count != 0; }611 get { return MountPoints.Count != 0; } 623 612 } 624 613
Note: See TracChangeset
for help on using the changeset viewer.
