Question: I have all the code worked out, but I can't seem to figure out how to put the appliance names back on the buttons when
I have all the code worked out, but I can't seem to figure out how to put the appliance names back on the buttons when they are turned "off". I stored the wattage in the button.tag and the appliance name in the button.text when i created them dynamically. The problem is when you go to reset to the original button.text now, the text on the button is the wattage so that is now assigned into the button.text. Help!

Advanced C# Program 1 30 points You need to create a program that will download a list of appliances could be found in a typical home. With that list will be included the amount of power that an appliance consumes. The program will allow for price per kWh for electricity. As you turn on appliances you should see several text boxes on the form that display what the turned on appliance(s) that are turned on consume per hour, per day and per year For this assignment: 1. Create a GUI (PowerViewer) so that a customer's current electric rate and consumption can be displayed. 2. The appliances will be downloaded from a file. The class that takes care of this part is ApplianceDA and will return a List of Appliance objects. 3. In the form generate a button for each appliance returned from the ApplianceDA class. There may need to be several rows of buttons on the form. When a mouse over on a button occurs show a tool tip describing the appliance the power they consume 4. When a button is pressed simulate the turning on of that appliance by turning the background of the button to green. Then update the current cost of the appliance(s) that are turned on the form Grading for program 1 Requirement GUI allows entry of an order in an intuitive fashion GUI shows hourly, daily and vearly rate of those appliances 6 All appliances represented by a button on the form Background color indicates if an appliance is on or off Follows 3 layer model of business classes Points 10 Score 10 Form View: Coe per hour s.01 Cot pen dy 24 Coe peryear SE70 Curent Watage 100 Dovioos wo can lurn on or off crome (This based on which appliances are in the tide.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
