private void locationsAddButton_Click(object sender, EventArgs e) { databaseController dbc = new databaseController(); int id_l = 0; string name1 = locationsNameTextBox.Text; string postal = postalLocationsTextBox.Text; Locations loc = new Locations(id_l, name1, postal); dbc.SaveLocations(loc); locationslistBox.Items.Clear(); OutputLocations(); }