public void pickSize(Promotional s) { Price = s.Price; //Price = Price + s.getPrice; updateAddonReciept(s.getId + " " + Id + " $" + Math.Round(TotalOrder(), 2)); TotalOrder(); }
private void coolStuffSelectionRT() { Promotional newPromo = new Promotional(); newPromo.updateAddonReciept += new Promotional.ListItems(recieptInfo); //check to see which size is checked foreach (RadioButton rb in sizeRb) { try { if (rb.Checked) //looks to see what size was picked { newPromo.pickSize(promoList[rb.TabIndex]); //adds the salad to the order newOrder.AddItem(newPromo); } } catch (Exception e) { MessageBox.Show(Convert.ToString(e)); } } }