Following the other System Information coding style

This commit is contained in:
MaxXor 2014-07-24 16:28:01 +02:00
parent 24de7ae6bb
commit 948a208280
1 changed files with 1 additions and 7 deletions

View File

@ -127,13 +127,7 @@ namespace Core
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";
}