コード例 #1
0
ファイル: Client.cs プロジェクト: ctd58/CS451_Checkers
 public Client(Game_Form game)
 {
     currentGame = new ClientCheckersGame(game);
     gameForm    = game;
     //output = game.GetOutputBox();
     turnText = game.GetTurnBox();
     //gameForm.SetOutputBox("Client Succesfully Created...");
 }
コード例 #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();
        }
コード例 #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();
        }
コード例 #4
0
 public ClientCheckersGame(Game_Form game)
 {
     gameForm  = game;
     gameBoard = new GameBoard();
 }