private void AddSubCategory(Items.ItemSubCategory SubCat) { //cboSubCategory.Items.Add(Utility.FormParen((int)SubCat, 3) + " " + Items.SubCategoryLookup(SubCat)); CodeValue codeValue = new CodeValue(); codeValue.code = (Int32)SubCat; codeValue.value = SubCat.ToString() + " (" + (Int32)SubCat + ")"; cboSubCategory.Items.Add(codeValue); }
private void AddCategory(Items.ItemCategory Cat) { //cboCategory.Items.Add(Utility.FormParen((int)Cat, 2) + " " + Items.CategoryLookup(Cat)); CodeValue codeValue = new CodeValue(); codeValue.code = (Int32) Cat; codeValue.value = Cat.ToString() + " (" + (Int32) Cat + ")"; cboCategory.Items.Add(codeValue); }