//添加 private void toolAdd_Click(object sender, EventArgs e) { GroupBuyItemAddForm f = new GroupBuyItemAddForm(db, m_Promotion); if (f.ShowDialog() == DialogResult.OK) { m_Offer.Add(f.m_Offer, f.m_discoutType + "#" + f.m_discout.ToString()); m_Promotion.menuIds = BathClass.assemble(m_Offer); db.SubmitChanges(); dgvDetails_show(); } }