public Client(Game_Form game) { currentGame = new ClientCheckersGame(game); gameForm = game; //output = game.GetOutputBox(); turnText = game.GetTurnBox(); //gameForm.SetOutputBox("Client Succesfully Created..."); }
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(); }
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(); }
public ClientCheckersGame(Game_Form game) { gameForm = game; gameBoard = new GameBoard(); }