AMPSExcel.SubscriptionForm.processTopic C# (CSharp) 메소드

processTopic() 개인적인 메소드

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