public IncomingParam(int deviceNumber, eSendingParamType type, string paramName) { m_DeviceNumber = deviceNumber; m_ParamType = type; m_Data = 0; m_ParamName = paramName; }
Dictionary <int, string> numberToText = null; // соответствие номера параметра текстовому значению public LabelWithText(string text_before, string text_after, Label label, cProtocolDeSerializer prot_des, eSendingParamType param_type) { this.textBefore = text_before; this.textAfter = text_after; this.label = label; this.protocolDeser = prot_des; this.paramType = param_type; }
public LabelWithText(string text_before, string text_after, Label label, cProtocolDeSerializer prot_des, eSendingParamType param_type, Dictionary <int, string> number_text) { this.textBefore = text_before; this.textAfter = text_after; this.label = label; this.protocolDeser = prot_des; this.paramType = param_type; this.numberToText = number_text; }
public UInt32 GetParamValue(eSendingParamType paramType) { foreach (IncomingParam param in ListOfParameters) { if (param.GetType() == paramType) { return(param.GetData()); } } return(0); }