Ejemplo n.º 1
0
        protected void btnLogin_Click(object sender, EventArgs e)
        {
            Contact mySelf = new Contact(txtLogin.Text);
            MediatorHelper.Instance().ChatRoom.Register(mySelf);
            Session["User"] = mySelf;
            Response.Redirect("ChatRoom.aspx");

        }
Ejemplo n.º 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();
        }