Exemple #1
0
 private void PopulateCatTree(String Type)
 {
     if (Type == "Drug")
     {
         Category cat = new Category();
         treeCategory.DataSource = cat.GetCategoryTree();
     }
     else
     {
         SupplyCategory subCat = new SupplyCategory();
         treeCategory.DataSource = subCat.GetAllSupplyCategories();
     }
 }
Exemple #2
0
        /// <summary>
        /// Populates the supply category tree
        /// </summary>
        private void PopulateSupplyCatTree()
        {
            SupplyCategory subCat = new SupplyCategory();

            treeSupCategory.DataSource = subCat.GetAllSupplyCategories();
        }