//button click event handler that handles creating Battleship of Board B public void CreateBattleShipB(object sender, EventArgs e) { if (BattleshipB.BattleshipBCount() < 4 && BattleshipB.BattleshipBCount() > 0) { boatsettingPoint2BattleShipB(sender, e); } if (BattleshipB.BattleshipBCount() == 0) { ((Button)sender).BackColor = Color.Yellow; ((Button)sender).Enabled = false; btnCreateCruiserB.Enabled = true; BattleshipB.BattleshipBDecrement(); disableBoardB(); MessageBox.Show("Please click Create Cruiser", "Battleship Complete"); } if (BattleshipB.BattleshipBCount() == 4) { ((Button)sender).BackColor = Color.Yellow; ((Button)sender).Enabled = false; boatSettingPoint1B(sender, e); BattleshipB.BattleshipBDecrement(); } }