I've KeyValuePair in xml like this:
<list_pair key="WorkMode">
<str_pair key="1" value="&1 Ready" />
<str_pair key="2" value="&2 Not ready" />
</list_pair>
I'm able to add them into a dictionary:
foreach (XmlNode wmNode in wmNodeList)
wmDictionary.Add(wmNode.Attributes["key"].Value, wmNode.Attributes["value"].Value);
Since I want the value to be displayed nicely in a menu in my application interface, I want to change the value to be displayed. For example, I want to change the value "& 1 Ready" to "1 Ready". So, how can I do that changes? Here's what I've done so far:
foreach(var key in wmDictionary.Keys)
{
switch (key)
{
//How to do the changes?
}
}
Please help.