Esempio n. 1
0
 public PartitionListing(int num, DiskListing disk, PartitionInfo part)
 {
     this.Disk      = disk;
     this.PartNum   = num;
     this.Partition = part;
     this.Size      = part.TotalSize;
     this.ID        = part.SystemID;
 }
Esempio n. 2
0
 /// <summary>
 /// Selects a DiskListing from the list
 /// </summary>
 public static void SelectDisk()
 {
     SelectedDisk = null;
     do
     {
         Console.WriteLine("Which disk do you wish to use?\n");
         ListDisks();
         string nums = Console.ReadLine();
         int    num  = int.Parse(nums) - 1;
         if (num >= 0 && num < DiskListing.DiskListings.Count)
         {
             SelectedDisk = DiskListing.DiskListings[num];
         }
     }while (SelectedDisk == null);
 }