cleanup util
This commit is contained in:
parent
41f25d48fb
commit
adb8a5508b
1 changed files with 2 additions and 5 deletions
|
@ -138,9 +138,6 @@ namespace EnvyUpdate
|
||||||
case "pfid":
|
case "pfid":
|
||||||
xmlcontent = wc.DownloadString("https://www.nvidia.com/Download/API/lookupValueSearch.aspx?TypeID=3");
|
xmlcontent = wc.DownloadString("https://www.nvidia.com/Download/API/lookupValueSearch.aspx?TypeID=3");
|
||||||
break;
|
break;
|
||||||
case "osid":
|
|
||||||
xmlcontent = wc.DownloadString("https://www.nvidia.com/Download/API/lookupValueSearch.aspx?TypeID=4");
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -178,10 +175,10 @@ namespace EnvyUpdate
|
||||||
int value = 0;
|
int value = 0;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
int value1 = 0;
|
int value1 = 0;
|
||||||
int value2 = 0;
|
int value2 = 0; //Two values are used to cover the eventuality of there being two Nvidia cards (unlikely) in a mobile device
|
||||||
|
|
||||||
var names = xDoc.Descendants("Name");
|
var names = xDoc.Descendants("Name");
|
||||||
foreach (var name in names)
|
foreach (var name in names) // Looping through the XML Doc because the name is not the primary key
|
||||||
{
|
{
|
||||||
string sName = name.Value.ToString().ToLower();
|
string sName = name.Value.ToString().ToLower();
|
||||||
if (sName == query)
|
if (sName == query)
|
||||||
|
|
Reference in a new issue