示例#1
0
 public void Execute()
 {
     System.Diagnostics.Debug.WriteLine("Executing MyCmd");
     if (null != _receiver)
     {
         _receiver.Action();
     }
 }
示例#2
0
        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);
        }