//button click event handler that handles creating cruiser of Board B private void CreateCruiserB(object sender, EventArgs e) { if (CruiserB.CruiserBCount() < 3 && CruiserB.CruiserBCount() > 0) { boatsettingPoint2CruiserB(sender, e); } if (CruiserB.CruiserBCount() == 0) { ((Button)sender).BackColor = Color.Green; ((Button)sender).Enabled = false; btnCreateSubmarineB.Enabled = true; CruiserB.CruiserBDecrement(); disableBoardB(); MessageBox.Show("Please click Create Submarine", "Cruiser Complete"); } if (CruiserB.CruiserBCount() == 3) { ((Button)sender).BackColor = Color.Green; ((Button)sender).Enabled = false; boatSettingPoint1B(sender, e); CruiserB.CruiserBDecrement(); } }