Beispiel #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            Form1 client = new Form1();

            client.SocketClient(textBox1.Text, int.Parse(textBox4.Text));
            client.StartClient();
            client.Close();
        }
Beispiel #2
0
        public void 登录ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form form1 in this.MdiChildren)
            {
                form1.Close();
            }
            Form_Login formLogin = new Form_Login();

            formLogin.MdiParent       = this;
            formLogin.FormBorderStyle = FormBorderStyle.None;
            formLogin.Dock            = DockStyle.Fill;
            formLogin.Show();
        }
Beispiel #3
0
 private void button2_Click(object sender, EventArgs e)
 {
     form1.Close();
     this.Hide();
     Application.Exit();
 }