private void btnEditFood_Click(object sender, EventArgs e) { frmAddFood frm = new frmAddFood(); frm.EditMode = true; frm.FoodId = IdFood; frm.ShowDialog(); getUnits(); }
private void btnAddFood_Click(object sender, EventArgs e) { frmAddFood frm = new frmAddFood(); frm.ShowDialog(); getFood(); FilterFood(); getUnits(); }