private void btnStart_Click(object sender, EventArgs e) { EndGameForm z = new EndGameForm(ref c, tbClientName.Text); TriviaForm t = new TriviaForm(ref c); t.clientname = tbClientName.Text; c.SetEndGameForm(z); c.SetTriviaForm(t); c.proxy.StartGame(tbClientName.Text); btnStart.Enabled = false; }
public void SetTriviaForm(TriviaForm form) { triviaform = form; triviaform.FormClosed += new FormClosedEventHandler(Channel_Faulted); }