public string GetKey(IXMLNode n) { return n.GetAttribute ("ikey"); }
public Hashtable BuildHashtable(IXMLNode n) { Hashtable retval = new Hashtable (); retval ["ikey"] = n.GetAttribute ("ikey"); foreach (IXMLNode nn in n.Children) { switch (nn.Name) { case "location": break; case "mastery_level": break; case "rewards": retval ["rewards"] = CrmParser_.ParseModifierList (nn); break; case "costs": retval ["costs"] = CrmParser_.ParseCostList (nn); break; case "requires": retval ["requires"] = CrmParser_.ParseRequirementList (nn); break; case "tags": retval ["tags"] = CrmParser_.ParseChildrenForAttribute (nn, "value"); break; case "properties": retval ["properties"] = CrmParser_.ParsePropertiesList (nn); break; default: retval [nn.Name] = nn.Text; break; } } return retval; }
public string GetKey(IXMLNode n) { string key = n.GetAttribute ("ikey"); if (key != null) return key; return n.GetAttribute ("name"); }
public virtual string GetKey(IXMLNode n) { return n.GetAttribute ("id"); }
public string GetKey(IXMLNode n) { return n.GetAttribute ("product_identifier"); }
protected void OnUpdate(IXMLNode update) { //Since you can get change events from login calls, when the Properties object is not yet setup we need to be careful here: if (! HasDataFromServer) return; //var d = event['data'] as Hashtable; var v = GetProperty (update.GetAttribute ("ikey")) as Hashtable; if (v != null) { v ["value"] = update.GetAttribute ("value"); } }