Esempio n. 1
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));
            }
        }
Esempio n. 2
0
        public void CapitalizeColumn(CsvTable csv, string columnName)
        {
            if (csv == null)
            {
                return;
            }
            int column = csv.LookupColumn(columnName);

            if (column == -1)
            {
                return;
            }

            csv.dataColumns[column].Capitalize();
            displayManager.DisplayTextFile(csv.dataColumns[column].UniqueElements(), 1000);
        }