public void RefreshListBoxLists() { listBoxList.Items.Clear(); listBoxLanguage.Items.Clear(); listBoxWord.Items.Clear(); foreach (string list in WinFormsHelper.Lists()) { listBoxList.Items.Add(list); } if (listBoxList.Items.Count != 0) { listBoxList.SelectedIndex = 0; listBoxLanguage.SelectedIndex = 0; } else { buttonDeleteList.Enabled = false; buttonLoadList.Enabled = false; } }