コード例 #1
0
 public void cmd_OnExecute(object sender, CCommandInfo moveInf)
 {
     Console.WriteLine("Webservice: " + moveInf.sCommand);
     if (moveInf.state == CStateType.Execute)
     {
         form.ExecuteCommand(sender, moveInf.sCommand);
     }
 }
コード例 #2
0
 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);
     }
 }