From 948a2082806bc875fe836a2cb1cc3c993b009a9c Mon Sep 17 00:00:00 2001 From: MaxXor Date: Thu, 24 Jul 2014 16:28:01 +0200 Subject: [PATCH] Following the other System Information coding style --- Client/Core/SystemCore.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Client/Core/SystemCore.cs b/Client/Core/SystemCore.cs index 0f363a7a..caa324b4 100644 --- a/Client/Core/SystemCore.cs +++ b/Client/Core/SystemCore.cs @@ -127,13 +127,7 @@ public static string GetGpu() string Query = "SELECT * FROM Win32_DisplayConfiguration"; ManagementObjectSearcher searcher = new ManagementObjectSearcher(Query); foreach (ManagementObject Mobject in searcher.Get()) - { - foreach (PropertyData property in Mobject.Properties) - { - if (property.Name == "Description") - GPUName = property.Value.ToString(); - } - } + GPUName = Mobject["Description"].ToString(); return (!string.IsNullOrEmpty(GPUName)) ? GPUName : "N/A"; }