Example #1
0
        public AdminTree(CsvTable table, string level0)
        {
            root = new AdminTreeNode(level0);

            for (int row = 0; row < table.Rows; row++)
            {
                List <string> adminPath = table.GetAdminPath(row);
                root.AddAdminPath(adminPath, 1);
            }
        }
Example #2
0
        public void AddFacilityNodes(CsvTable table)
        {
            int col = table.LookupColumn("Facility");

            if (col == -1)
            {
                return;
            }
            for (int row = 0; row < table.Rows; row++)
            {
                List <string> adminPath = table.GetAdminPath(row);
                root.AddFacility(adminPath, 1, table.dataColumns[col].StringAt(row));
            }
        }