Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Contact mySelf = new Contact(textBox1.Text);
            MediatorHelper.Instance().ChatRoom.Register(mySelf);

            contactForm contactListForm = new contactForm(textBox1.Text);
            this.Visible = false;
            contactListForm.ShowDialog();
            this.Close();
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Contact mySelf = new Contact(textBox1.Text);

            MediatorHelper.Instance().ChatRoom.Register(mySelf);

            contactForm contactListForm = new contactForm(textBox1.Text);

            this.Visible = false;
            contactListForm.ShowDialog();
            this.Close();
        }