protected virtual void OnOrderChanged(OrderTypeEventArgs e) { //ManualOperationOrders?.Invoke(this, e); if (ManualOperationOrders != null) { ManualOperationOrders.Invoke(this, e); } }
private void FrmMM_ManualOperationOrders(object sender, OrderTypeEventArgs e) { switch (e.orderName) { case "ZQ1B": MsgSend(clientRobot, rd.createCommand(Params.PC2RobotCommandType.ZQ1B), false); break; case "Return1": MsgSend(clientRobot, rd.createCommand(Params.PC2RobotCommandType.Return1), false); break; case "ZQ2B": MsgSend(clientRobot, rd.createCommand(Params.PC2RobotCommandType.ZQ2B), false); break; case "Return2": MsgSend(clientRobot, rd.createCommand(Params.PC2RobotCommandType.Return2), false); break; case "ZQ3B": MsgSend(clientRobot, rd.createCommand(Params.PC2RobotCommandType.ZQ3B), false); break; case "Return3": MsgSend(clientRobot, rd.createCommand(Params.PC2RobotCommandType.Return3), false); break; case "JQ1": MsgSend(clientRobot, rd.createCommand(Params.PC2RobotCommandType.JQ1), false); break; case "JQ2": MsgSend(clientRobot, rd.createCommand(Params.PC2RobotCommandType.JQ2), false); break; case "TopCaliperClamp": MsgSend(clientCoder, new byte[] { 0x01, 0x00 }, false); break; case "LowCaliperClamp": MsgSend(clientCoder, new byte[] { 0x02, 0x00 }, false); break; case "TopCaliperOpen": MsgSend(clientCoder, new byte[] { 0x00, 0x40 }, false); break; case "LowCaliperOpen": MsgSend(clientCoder, new byte[] { 0x00, 0x80 }, false); break; default: break; } }