public Form1() { InitializeComponent(); rng = new Random(); hd = new HardDisk(); os = new OperatingSystem(hd); // Generate a list of random requests based on set constant. GenerateRandomRequests(15); foreach (Request r in os.Requests) { requestedSectorNumbersLbx.Items.Add(r.SectorNumber); } }
public OperatingSystem(HardDisk Disk) { disk = Disk; requests = new List <Request>(); }