static void Main() { NameFileMapper.InitializeNameFileMapper(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new FE12GuideNameForm()); }
private void InitializeNameListBoxContents(string fileName) { // Clear this in case this is the second file the user has opened. nameListBox.Items.Clear(); List <string> nameList = NameFileMapper.GetNamesForFile(fileName); for (int i = 0; i < nameHelper.nameList.Count; i++) { if (nameList != null && i < nameList.Count) { nameListBox.Items.Add(nameList[i]); } else { nameListBox.Items.Add("Name" + i); } } }