//Function creates a new order from given values input by user and updates quantities private void btnOrder_Click(object sender, EventArgs e) { //Creates new purchased item PurchasedItem order = new PurchasedItem(formItem, formSize, cmbQuant.SelectedIndex + 1); //Updates total cost of orders formCharge += order.Cost; //Adds order description to the text box of total orders lblTotal.Text = formCharge.ToString("C"); lstOrder.Items.Add(order.ToString()); }