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