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(); }
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(); }