private void decodeSetMessage(ModbusMessage msg) { String setType = (String)msg.Data["SetType"]; if ("Mode".Equals(setType)) { String mode = (String)msg.Data["Mode"]; MMA_TestMode = stringToJianCeMoShi(mode); } }
public static String jianCeMoShiToString(MMA_TestMethod m) { switch (m) { case MMA_TestMethod.OD: return("OD"); case MMA_TestMethod.Flu: return("YG"); case MMA_TestMethod.Che: return("HXFG"); } return("OD"); }
public static String jianCeMoShiToString(MMA_TestMethod m) { switch (m) { case MMA_TestMethod.OD: return "OD"; case MMA_TestMethod.Flu: return "YG"; case MMA_TestMethod.Che: return "HXFG"; } return "OD"; }