-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathai.ht.userinputselect.cs
48 lines (43 loc) · 1.38 KB
/
ai.ht.userinputselect.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using System;
using System.IO;
class Program
{
static void Main()
{
// Identify the device
Console.WriteLine("Device Name: " + Environment.MachineName);
// Query storage space
foreach (DriveInfo drive in DriveInfo.GetDrives())
{
if (drive.IsReady)
{
Console.WriteLine("Drive: " + drive.Name);
Console.WriteLine(" Available space: " + drive.AvailableFreeSpace);
Console.WriteLine(" Total size: " + drive.TotalSize);
}
}
// Query memory
Console.WriteLine("Total Memory: " + Environment.WorkingSet);
// Ask for user input to select settings
Console.WriteLine("Please select a setting:");
Console.WriteLine("1. I like UI");
Console.WriteLine("2. I <3 UI");
Console.WriteLine("3. I 8> UI");
string input = Console.ReadLine();
switch (input)
{
case "1":
Console.WriteLine("You selected: I like UI");
break;
case "2":
Console.WriteLine("You selected: I <3 UI");
break;
case "3":
Console.WriteLine("You selected: I 8> UI");
break;
default:
Console.WriteLine("Invalid selection");
break;
}
}
}