Esempio n. 1
0
        private void JoinTopicButton_Click(object sender, EventArgs e)
        {
            ClientChatRoom chatroom = (ClientChatRoom)ctm.JoinTopic(CreateTopicTextBox.Text);

            Debug.WriteLine("MARCHE?");
            chatroom.Join(chatter);

            chatroomIHM = new ChatroomIHM(chatroom);
        }
Esempio n. 2
0
        public void JoinTopic(string topic)
        {
            if (!topicRooms.ContainsKey(topic))
            {
                ClientChatRoom chatroom = (ClientChatRoom)ctm.JoinTopic(topic);
                chatroom.Join(chatter);
                chatroom.Topic = topic;

                chatroomIHM = new ChatroomIHM(chatroom, this);

                topicRooms.Add(topic, chatroomIHM);
                chatroomIHM.Show();
            }
            else
            {
                topicRooms[topic].Activate();
            }
        }