private void btn_NB_Click(object sender, EventArgs e) { /* * 숫자 야구 관련 Form을 불러오자. */ this.Visible = false; // Word 게임 선택했다고 보내주기. string chn = mySocket.LocalEndPoint.ToString().Split(':')[1]; packet = new PacketInfo(chn, uid, "1", "0", ""); packet.setState("2"); string msg = packet.makePacket(); mySocket.Send(Encoding.Default.GetBytes(msg)); NBGame nbgame = new NBGame(mySocket, uid); nbgame.ShowDialog(); this.Visible = true; //string msg = packet.makePacket(); //mysocket.Send(Encoding.Default.GetBytes(msg)); // this.Visible =false; // Form lalaa = new Form(); // lalaa.ShowDialog(); // this.Visible=True; }
private void btn_Word_Click(object sender, EventArgs e) { this.Visible = false; // Word 게임 선택했다고 보내주기. string chn = mySocket.LocalEndPoint.ToString().Split(':')[1]; packet = new PacketInfo(chn, uid, "1", "0", ""); packet.setState("1"); string msg = packet.makePacket(); mySocket.Send(Encoding.Default.GetBytes(msg)); WordGame wordgame = new WordGame(mySocket, uid); wordgame.ShowDialog(); this.Visible = true; }