Example #1
0
 /// <summary>
 /// Determines whether the specified partition has any file system mappings associated with it.
 /// </summary>
 /// <param name="part">The partition to check.</param>
 /// <returns>Whether there are any file system mappings for the partition.</returns>
 public static bool HasMapping(Partition part)
 {
     for (int i = 0; i < FileSystemMappings.Count; i++)
     {
         FileSystemMapping mapping = (FileSystemMapping)FileSystemMappings[i];
         if (mapping.TheFileSystem.ThePartition == part)
         {
             return true;
         }
     }
     return false;
 }
Example #2
0
 /// <summary>
 /// Initializes a new file system for the specified partition.
 /// </summary>
 /// <param name="aPartition">The partition in which the partition resides.</param>
 public FileSystem(Partition aPartition)
 {
     thePartition = aPartition;
 }