public void cmd_OnExecute(object sender, CCommandInfo moveInf) { Console.WriteLine("Webservice: " + moveInf.sCommand); if (moveInf.state == CStateType.Execute) { form.ExecuteCommand(sender, moveInf.sCommand); } }
public void NotifyExecute(CStateType cmdState, String cmd) { if (OnExecute != null) { CCommandInfo cmdInfo = new CCommandInfo(cmd); cmdInfo.Message = cmd; cmdInfo.cmd = this; cmdInfo.xNode = node; cmdInfo.state = cmdState; OnExecute(this, cmdInfo); } }