using StageController.M3H; using System; namespace StageController { /// /// 4.4 电脑控制全局指令 /// public class CommandGlobal : CommandBase { private ControlType m_type; public CommandGlobal(ControlType type) { m_type = type; } public override string Make() { return "@C" + Enum.GetName(typeof(ControlType), m_type) + "!"; } public override bool Parse(string response) { bool retVal = false; string tmpRes = "@C" + m_type + "!"; if (tmpRes.CompareTo(response) == 0) { retVal = true; } return retVal; } } }