private void MainForm_Shown(object sender, EventArgs e) { string csFolder = System.Environment.GetEnvironmentVariable("CS_MAP_DIR"); CoordinateSystemCatalog cat = new CoordinateSystemCatalog(csFolder); cat.Load(); catListBox.Items.AddRange(cat.Categories); }