本文整理汇总了C#中System.Collections.Hashtable.ToLower方法的典型用法代码示例。如果您正苦于以下问题:C# Hashtable.ToLower方法的具体用法?C# Hashtable.ToLower怎么用?C# Hashtable.ToLower使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Collections.Hashtable
的用法示例。
在下文中一共展示了Hashtable.ToLower方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: deleteSpecifiedAddons
// ----------------------------------------------
private void deleteSpecifiedAddons()
{
string URL = AutoAddonURL.Text;
DebugLine(_RETRXMLDATA);
string UpdateQueryResponse = "";
string value2 = valu2.Text;
if (sendPwSecurely.Checked)
{
value2 = MD5SUM(new UTF8Encoding(true).GetBytes(valu2.Text));
}
if (arg1check.Checked && arg2check.Checked)
{
UpdateQueryResponse = RetrData(URL, null, null, "OPERATION", "GETDELETEADDONS", arrg1.Text, valu1.Text, arrg2.Text, value2, -1, null, null);
}
else
{
UpdateQueryResponse = RetrData(URL, null, null, "OPERATION", "GETDELETEADDONS", null, null, null, null, -1, null, null);
}
DebugLine(_XMLPARS);
if (UpdateQueryResponse == string.Empty) return;
ArrayList addonsToCheck = new ArrayList();
try
{
XmlDocument doc = new XmlDocument();
/////////////////////////////////////
/// Begin Reading the XML data ///
/////////////////////////////////////
doc.InnerXml = UpdateQueryResponse;
XmlElement root = doc.DocumentElement;
XmlNodeList lstXMLData = root.GetElementsByTagName("addon");
/////////////////////////////////////
/// Finished Reading the XML data ///
/////////////////////////////////////
foreach (XmlNode Node in lstXMLData)
{
Hashtable addon = new Hashtable();
string name = Node.Attributes.GetNamedItem("dirname").Value.ToString();
addonsToCheck.Add(name);
}
}
catch (Exception ex)
{
DebugLine("deleteSpecifiedAddons: " + ex.Message);
}
string addonPath = GetInstallPath() + "\\Interface\\AddOns";
try
{
DirectoryInfo addonDirInfo = new DirectoryInfo(addonPath);
DirectoryInfo[] installedAddons = addonDirInfo.GetDirectories();
foreach (DirectoryInfo installedAddonDir in installedAddons)
{
foreach (string addon in addonsToCheck)
{
//MessageBox.Show(installedAddonDir.Name.ToLower());
if (installedAddonDir.Name.ToLower() == addon.ToLower())
{
Directory.Delete(installedAddonDir.FullName, true);
}
}
}
}
catch (Exception ex)
{
DebugLine("deleteSpecifiedAddons: " + ex.Message);
}
}