/// <summary> /// Fills ComboBox with database names /// </summary> private void comboBoxFill() { comboBoxDBSelector.Items.Clear(); for (int i = 0; i < DBReader.selectAllDatabaseNames(connection).Count(); i++) { string newDatabaseName = ""; newDatabaseName = DBReader.selectAllDatabaseNames(connection)[i]; comboBoxDBSelector.Items.Add(newDatabaseName.Substring(4, newDatabaseName.Length - 4)); } }