private void btnCreateBeer_Click(object sender, EventArgs e) { //create new beer object Beer newBeer = new Beer(txtName.Text, Convert.ToInt32(txtVolume.Text), Convert.ToInt32(txtPrice.Text)); //tell pub object to add beer pub.Add(newBeer); RefreshList(); }