/// <summary> /// Add a vlv /// </summary> /// <param name="vlv"></param> public void AddVLV(VLV vlv) { if (messages.Count > 0) { if (messages[messages.Count - 1].GetKey() == Keys.VLV) { messages[messages.Count - 1] = new VLV(messages[messages.Count - 1].GetParameterInt(0) + vlv.GetParameterInt(0)); } else { messages.Add(vlv); } } else { messages.Add(vlv); } }
/// <summary> /// Add a vlv and message /// </summary> /// <param name="vlv"></param> /// <param name="message"></param> public void AddMessage(VLV vlv, Message message) { AddVLV(vlv); AddMessage(message); }