private void NewSB_Click(object sender, EventArgs e) { DiscountRuleData form = new DiscountRuleData("new", null, Convert.ToInt32(discountId)); form.ShowDialog(); Fill(); }
private void EditSB_Click(object sender, EventArgs e) { DiscountRuleData form = new DiscountRuleData("edit", Convert.ToInt32(DataGV.SelectedRows[0].Cells["ID"].Value), null); form.ShowDialog(); manager.Save(); manager.CloseContext(); manager = new ContextManager(); Fill(); }