AMPSExcel.SubscriptionForm.processTopic C# (CSharp) Method

processTopic() private method

private processTopic ( AMPS message ) : void
message AMPS
return void
        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)
            {
            }
        }