Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 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();
 }