private void btnSave_Click(object sender, EventArgs e) { Add(); Delete(); _routine.SingleProducts = _routine?.GetSingleProducts(); _routine.AllProducts = _routine?.GetAllProducts(); _routine.AllProducts = _routine.GetAllProducts(); _father?.UpdateProducts(); Close(); }
private void btnSave_Click(object sender, EventArgs e) { Add(); Delete(); _routine.Families = _routine?.GetFamilies(); _routine.AllProducts = _routine?.GetAllProducts(); _routine.ProductsByFamily = _routine.GetProductsByFamily(); _father?.UpdateFamilies(); _father?.UpdateProducts(); Close(); }