private void RebuildFontList() { ClearStatus(); var di = new DirectoryInfo(fontFolder); if (!di.Exists) { ShowError("{0} doesn't exist.", di.FullName); return; } listBoxFont.Items.Clear(); try { foreach (var file in fontService.GetFontFiles(di, false)) { listBoxFont.Items.Add(Path.GetFileName(file.FullName)); } } catch (Exception ex) { ShowException(ex); } listBoxFont.SelectedIndex = 0; }