public void getProperties(TopicPanel topic)
 {
     topic.BrokerURL      = mBrokerURLTextBox.Text;
     topic.BrokerUsername = mUsernameTextBox.Text;
     topic.BrokerPassword = mPasswordTextBox.Text;
     topic.Topic          = mTopicTextBox.Text;
     topic.Project        = mProjectTextBox.Text;
     topic.Service        = mServiceTextBox.Text;
 }
        public void setProperties(TopicPanel topic)
        {
            mDontFireEvents        = true;
            mBrokerURLTextBox.Text = topic.BrokerURL;
            mUsernameTextBox.Text  = topic.BrokerUsername;
            mPasswordTextBox.Text  = topic.BrokerPassword;
            mTopicTextBox.Text     = topic.Topic;
            mProjectTextBox.Text   = topic.Project;
            mServiceTextBox.Text   = topic.Service;
            mDontFireEvents        = false;

            if (ConfigChanged != null)
            {
                ConfigChanged(this, EventArgs.Empty);
            }
        }