/// <summary> /// Refreshes the combobox to select the accounts. /// </summary> public void RefreshAccounts() { comboBoxAccounts.Items.Clear(); comboBoxAccounts.Items.AddRange(BotFile.GetAccountNames()); comboBoxAccounts.SelectedIndex = (comboBoxAccounts.Items.Count == 0) ? -1 : 0; }