private void cRestAddButton_Click(object sender, EventArgs e) { if (!String.IsNullOrEmpty(cRestNameTextBox.Text) && !String.IsNullOrEmpty(cRestOpComboBox.Text)) { Organization o = _org.GetOrganization(cRestOrgComboBox.Text); bool isOp = string.Equals(cRestOpComboBox.Text, "Yes") ? true : false; Restaurant r = _rest.CreateRestaurant(o.OrganizationID, cRestNameTextBox.Text, isOp); restListBox.Items.Add(r.RestaurantName); cRestIdNumLabel.Text = r.RestaurantID.ToString(); cInventoryRestComboBox.Items.Add(r.RestaurantName); cSelectRestExpendComboBox.Items.Add(r.RestaurantName); cSelectRestEmpInfoComboBox.Items.Add(r.RestaurantName); } else { MessageBox.Show("Please make sure to fill out the restaurant name section, in addition, select an organization from the list of organizations, and select whether the organization is operational."); } }