Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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);
 }