コード例 #1
0
ファイル: Form1.cs プロジェクト: thrawniejoe/PizzaEmporium
        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));
                }
            }
        }