Example #1
0
        private void button10_Click(object sender, EventArgs e)
        {
            Game f3 = new Game(oppener, this, 8);

            f3.Show();
            this.Hide();
        }
Example #2
0
 private void StartGame()
 {
     if (this.InvokeRequired)
     {
         StartGameCallBack d = new StartGameCallBack(StartGame);
         this.Invoke(d, new object[] {  });
     }
     else
     {
         Game game = new Game(tcpclnt, stm);
         game.Tag = this;
         game.Show(this);
         game.Focus();
         Hide();
     }
 }
Example #3
0
        private void button2_Click(object sender, EventArgs e)
        {
            ASCIIEncoding asen = new ASCIIEncoding();

            byte[] buffer;
            if (s != null)
            {
                try
                {
                    buffer = asen.GetBytes("start");
                    s.Send(buffer);
                }
                catch
                {
                }
            }

            Game game = new Game(myClients, s);

            game.Show();
            this.connectThread.Abort();
            this.Close();
        }
Example #4
0
 private void button7_Click(object sender, EventArgs e)
 {
     Game f3 = new Game(oppener, this, 5);
     f3.Show();
     this.Hide();
 }