private void processTopic(AMPS.Client.Message message)
{
try
{
if (message.Data.Length > 0)
{
string data = message.Data;
int idx = data.IndexOf("20066=");
idx += 6;
string topicName = data.Substring(idx, data.IndexOf((char)0x01, idx) - idx);
this.BeginInvoke(new Action(() =>
{
if (!this.cmbTopic.Items.Contains(topicName))
{
this.cmbTopic.Items.Add(topicName);
}
}
));
}
}
catch (Exception)
{
}
}