using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace StageController { public class CommandVoltage : CommandBase { private string m_command; public CommandVoltage(string command) { m_command = command; } public override string Make() { return m_command; } public override bool Parse(string response) { string tmpRes = m_command.Substring(0, 4); if (tmpRes.CompareTo(response.Substring(0, 4)) == 0) { return true; } return false; } } }