public string ParseQuote(ref L1Quote L1Quote, ref byte[] Data)
{
try
{
string RecordID = Encoding.ASCII.GetString(Data, 0, 2);
short RecordLength = BitConverter.ToInt16(Data, 2);
string full_message = "";
for(int i = 4; i < RecordLength-1;)
{
short FieldID = BitConverter.ToInt16(Data, i);
i+=2;
string message = "";
i = ParseField(ref L1Quote, FieldID, ref Data, i, ref message);
full_message += message;
}
return full_message;
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
return "";
}
}