} // end onCancel private void onFinished(object sender, EventArgs e) { // make the includeInReport has some groups selected List <StewProductCosts> groupsIncluded = stewList.FindAll( delegate(StewProductCosts sp) { return(sp.includeInReport == "True"); }); if (groupsIncluded.Count == 0) { MessageBox.Show("No groups selected for inclusion in the report.\nPlease select groups to include by checking the box under Include.", "WARNING", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } else { bslyr.SaveStewCosts(stewList); Close(); return; } // endif no groups included } // end onFinished