コード例 #1
0
ファイル: Login.cs プロジェクト: erdonet/GofPatterns
        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();
        }
コード例 #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();
        }