//main constructor public champanshipForm(Reg_Form parent, int id, ServiceClient server) { InitializeComponent(); playerId = id; this.Location = parent.Location; this.server = server; }
//register new player private void New_PLayer_btn_Click(object sender, EventArgs e) { this.Hide(); Reg_Form regForm = new Reg_Form(this, server); regForm.ShowDialog(); this.Show(); }