//button click event handler that handles creating destroyer of Board B private void CreateDestroyerB(object sender, EventArgs e) { if (DestroyerB.DestroyerBCount() < 2 && DestroyerB.DestroyerBCount() > 0) { boatsettingPoint2DestroyerB(sender, e); } if (DestroyerB.DestroyerBCount() == 0) { ((Button)sender).BackColor = Color.Orange; ((Button)sender).Enabled = false; btnOk2.Visible = true; DestroyerB.DestroyerBDecrement(); disableBoardB(); MessageBox.Show("Click OK at the top to complete your ship setting", "Ships Complete"); } if (DestroyerB.DestroyerBCount() == 2) { ((Button)sender).BackColor = Color.Orange; ((Button)sender).Enabled = false; boatSettingPoint1B(sender, e); DestroyerB.DestroyerBDecrement(); } }