예제 #1
0
        protected void showChat()
        {
            client.User = new User(userNameTextBox.Text, passwordTextBox.Text);
            var frm = new Views.Chat(client);

            frm.Location      = this.Location;
            frm.StartPosition = FormStartPosition.Manual;
            frm.FormClosing  += delegate
            {
                client = null;
                this.Show();
            };
            frm.Show();
            this.Hide();
        }