Exemple #1
0
 public Client(Game_Form game)
 {
     currentGame = new ClientCheckersGame(game);
     gameForm    = game;
     //output = game.GetOutputBox();
     turnText = game.GetTurnBox();
     //gameForm.SetOutputBox("Client Succesfully Created...");
 }
Exemple #2
0
        private void Join_Button_Click(object sender, EventArgs e)
        {
            var frm = new Game_Form(false, ipBox.Text);

            frm.Location      = this.Location;
            frm.StartPosition = FormStartPosition.Manual;
            frm.FormClosing  += delegate { this.Show(); };
            frm.Show();
            this.Hide();
        }
Exemple #3
0
        private void Host_Button_Click(object sender, EventArgs e)
        {
            // Open Game form
            var frm = new Game_Form(true);

            frm.Location      = this.Location;
            frm.StartPosition = FormStartPosition.Manual;
            frm.FormClosing  += delegate { this.Show(); };
            frm.Show();
            this.Hide();
        }
Exemple #4
0
 public ClientCheckersGame(Game_Form game)
 {
     gameForm  = game;
     gameBoard = new GameBoard();
 }