BattleShip.Form1.gameButton C# (CSharp) Method

gameButton() private method

private gameButton ( ) : void
return void
        private void gameButton()
        {
            button = new Button();
            button.Text = "begin";
            button.Height = this.size;
            button.Width = LABELWIDTH;
            button.TextAlign = ContentAlignment.MiddleCenter;
            button.Font = new Font("Arial", 12);
            button.BackColor = Color.Transparent;
            button.Location = new Point(this.platAlly.Location.X + this.platAlly.Size.Width + 20, this.platAlly.Location.Y + LABELWIDTH);
            button.Click += button_Click;
            this.Controls.Add(button);

            Button btnRestart = new Button();
            btnRestart.Text = "RESTART";
            btnRestart.Height = this.size;
            btnRestart.Width = this.size * 3;
            btnRestart.Font = new Font("Arial", 12);
            btnRestart.Location = new Point(size * 27, this.Width / 2);
            btnRestart.SendToBack();
            this.Controls.Add(btnRestart);
            btnRestart.Click += btnRestart_Click;

            button = new Button();
            button.Text = "Join game";
            button.Height = this.size;
            button.Width = LABELWIDTH;
            button.TextAlign = ContentAlignment.MiddleCenter;
            button.Font = new Font("Arial", 12);
            button.BackColor = Color.Transparent;
            button.Location = new Point(this.platAlly.Location.X + this.platAlly.Size.Width + 20, this.platAlly.Location.Y + LABELWIDTH + 50);
            button.Click += button_Click;
            this.Controls.Add(button);

            button = new Button();
            button.Text = "Create game";
            button.Height = this.size;
            button.Width = LABELWIDTH;
            button.TextAlign = ContentAlignment.MiddleCenter;
            button.Font = new Font("Arial", 12);
            button.BackColor = Color.Transparent;
            button.Location = new Point(this.platAlly.Location.X + this.platAlly.Size.Width + 20, this.platAlly.Location.Y + LABELWIDTH + 100);
            button.Click += create_game;     
            this.Controls.Add(button);
        }