public void Clear() { Disks.Clear(); for (int y = 0; y < GridHeight; y++) { for (int x = 0; x < GridWidth; x++) { m_grid[x, y] = -1; } } }
private static void RefreshDrives() { Disks.Clear(); foreach (var drive in DriveInfo.GetDrives()) { Disks.Add(drive.Name, drive); // to się przyda potem: //double freeSpace = drive.TotalFreeSpace; //double totalSpace = drive.TotalSize; //double percentFree = (freeSpace / totalSpace) * 100; //float num = (float)percentFree; //Console.WriteLine("Drive:{0} With {1} % free", drive.Name, num); //Console.WriteLine("Space Remaining:{0}", drive.AvailableFreeSpace); //Console.WriteLine("Percent Free Space:{0}", percentFree); //Console.WriteLine("Space used:{0}", drive.TotalSize); //Console.WriteLine("Type: {0}", drive.DriveType); //Console.WriteLine("\n\n"); } }