public void AddGroup(ProductGroup pg) { if (!_groupList.Contains(pg)) { _groupList.Add(pg); Redraw(); } }
public IList<string> SaveProductGroup(ProductGroup pg) { _errorMessageList.Clear(); try { _productGroupDao.Save(pg); } catch (Exception ex) { _errorMessageList.Add(ex.Message); } return _errorMessageList; }
public void RemoveGroup(ProductGroup pg) { _groupList.Remove(pg); Redraw(); }