public virtual void Execute(string parameters) { Xml.XPath xpn= new Xml.XPath(); xpn.LoadXML(parameters); List<string> names = xpn.GetAttributes("/Params", "name"); List<string> values = xpn.GetAttributes("/Params", "value"); for (int i = 0; i < names.Count; i++) { _paramList[names[i]] = values[i]; } _commandReceiver.Action(this); }
public virtual void Execute(string parameters) { Xml.XPath xpn = new Xml.XPath(); xpn.LoadXML(parameters); List <string> names = xpn.GetAttributes("/Params", "name"); List <string> values = xpn.GetAttributes("/Params", "value"); for (int i = 0; i < names.Count; i++) { _paramList[names[i]] = values[i]; } _commandReceiver.Action(this); }