Esempio n. 1
0
        private void Join_Button_Click(object sender, EventArgs e)
        {
            var frm = new Game_Form(false, ipBox.Text);

            frm.Location      = this.Location;
            frm.StartPosition = FormStartPosition.Manual;
            frm.FormClosing  += delegate { this.Show(); };
            frm.Show();
            this.Hide();
        }
Esempio n. 2
0
        private void Host_Button_Click(object sender, EventArgs e)
        {
            // Open Game form
            var frm = new Game_Form(true);

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