public static ProtocolDef GetProtocolId(ref PathAndType item, DataModelType identifier) { var dataPointItem = DataPointsBase.Instance(identifier).GetItem(item.Path); if (dataPointItem == null) { return(0); } if (item.Type == "") { item.Type = dataPointItem.DataType; } return(dataPointItem.ProtocolId); }
public static ProtocolDef GetProtocolId(PathAndType item) { return(GetProtocolId(ref item, DataModelType.EltekData)); }