I'm working on something simple. Select one Radio Button in each group box. One has a set discount(none/10%/20%) and the other has the service offered.(Random shit, each has a specific cost) I then have two buttons and two text boxes. One displays the cost of the service and the discount combined, and the other displays the combined total of the overall purchase.
Buttons:
Calculate: ItemPrice - (Itemprice * Discount)
Clear: Clears it all. (I have this down)
I'm having trouble accumulating the total though.
ItemAmountDecimal = PriceDecimal - (PriceDecimal * CouponDecimal)
SubtotalDecimal += ItemAmountDecimal
TotalDecimal = SubtotalDecimal
CurrentServicesTextBox.Text = ItemAmountDecimal.ToString("C")
TotalServicesTextBox.Text = TotalDecimal.ToString("C")
I'm also want to add a warning message if one of the radio button services isn't selected in the services group box. Is their a quick and simple way of going about this? Looked all over and haven't found a solution that doesn't include a boolean.
Thank you for your assistance!

New Topic/Question
Reply



MultiQuote





|