private void PopulateTemplates() { TemplateList.Items.Clear(); bool dirExists = Directory.Exists(_fileStr); if (dirExists) { List <string> tempNames = ReadWrite.FindTemplates(_fileStr); foreach (var item in tempNames) { ListViewItem listItem = new ListViewItem(); listItem.Text = item; TemplateList.Items.Add(listItem); } } else { MessageBox.Show("File Error. Check Templates Directory in Settings"); } }