From 1529786d3983a6a4f76c53eab25b15c70d572ab4 Mon Sep 17 00:00:00 2001 From: SwEdryG Date: Fri, 31 Jul 2026 13:12:54 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20Program.cs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Program.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Program.cs b/Program.cs index 6f3cae5..4b31d99 100644 --- a/Program.cs +++ b/Program.cs @@ -11,7 +11,7 @@ class View_driver static void Main(string[] args) { List drivers = new List(); - string unknownName = "Неизвестное устройство"; + string unknownName = "Unknown Device"; var searcher = new ManagementObjectSearcher("SELECT * FROM Win32_PnPEntity"); foreach (ManagementObject obj in searcher.Get()) { @@ -25,7 +25,7 @@ class View_driver var statusColor = driver.Status_Device_driver switch { "OK" => ConsoleColor.Green, - "Error" => ConsoleColor.Red, + "Error" => ConsoleColor.DarkRed, "Degraded" => ConsoleColor.Yellow, _ => ConsoleColor.Gray }; @@ -33,17 +33,17 @@ class View_driver ? ConsoleColor.Red : ConsoleColor.DarkGray; - Console.Write("Имя: "); + Console.Write("Name: "); Console.ForegroundColor = nameColor; Console.Write(driver.Name_Device_driver); Console.ResetColor(); - Console.Write(" | Статус: "); + Console.Write(" | Status: "); Console.ForegroundColor = statusColor; Console.Write(driver.Status_Device_driver); Console.ResetColor(); - Console.Write(" | Путь: "); + Console.Write(" | Path: "); Console.ForegroundColor = ConsoleColor.DarkYellow; Console.Write($"{driver.Path_Device_driver}\n"); Console.ResetColor();