private void buttonConnect_Click(object sender, EventArgs e) { client = new TcpClient(textBoxIP.Text,int.Parse(textBoxPort.Text)); ClientClass tcpclient = new ClientClass(client); Form z = new NewGame(false,naam,tcpclient,this, textBoxIP.Text, textBoxPort.Text); z.Show(); this.Hide(); }
private void button_NewGame_Click(object sender, EventArgs e) { labelWaiting.Show(); Form z = new NewGame(true,textBox_Name.Text,this); z.Show(); s(textBox_Name.Text); this.Hide(); }
private void button_NewGame_Click(object sender, EventArgs e) { labelWaiting.Show(); Form z = new NewGame(true, textBox_Name.Text, this); z.Show(); s(textBox_Name.Text); this.Hide(); }
private void buttonConnect_Click(object sender, EventArgs e) { client = new TcpClient(textBoxIP.Text, int.Parse(textBoxPort.Text)); ClientClass tcpclient = new ClientClass(client); Form z = new NewGame(false, naam, tcpclient, this, textBoxIP.Text, textBoxPort.Text); z.Show(); this.Hide(); }