示例#1
0
        /*
         * When clicking on a topic in the list of topics , this immediately connects the user to said topic
         */
        private void SelectTopic(object sender, EventArgs e)
        {
            if (currTopic != null)
            {
                Net.sendMsg(comm, new TopicInfo((int)MTypes.LEAVETOP, null));
                MessagesBox.Clear();
            }

            currTopic = (string)ListTopics.Items[ListTopics.SelectedIndex];
            Net.sendMsg(comm, new TopicInfo((int)MTypes.JOINTOP, currTopic));
        }