Presentation is loading. Please wait.

Presentation is loading. Please wait.

Exercise 5 Introduction to C# CIS-2320. 2 This exercise uses Group boxes, Radio buttons, List boxes, and Buttons to allow users to select food items from.

Similar presentations


Presentation on theme: "Exercise 5 Introduction to C# CIS-2320. 2 This exercise uses Group boxes, Radio buttons, List boxes, and Buttons to allow users to select food items from."— Presentation transcript:

1 Exercise 5 Introduction to C# CIS-2320

2 2 This exercise uses Group boxes, Radio buttons, List boxes, and Buttons to allow users to select food items from a menu and display the selected items in a List box. Use Group boxes with Radio buttons to select the customer’s choice of meat, drink, bread, and desert. A List box is used to select up to three vegetables (use the MultiExtended Selection mode). When the program executes a dialog box should open as shown below.

3 3 The Selected Items list box is displaying the current selections (the selections MUST be displayed in the order shown). This list box is to be updated as the user makes their selections, with the exception of Vegetable Selections. The user can select none, 1, 2, or 3 vegetables. When the OK button is clicked, update the Selected Items list box with the vegetables selected. When the Clear button is clicked, reset all vegetables selected and update the Selected Items ( set it to “None” ) list box.

4 4 If more than three vegetables are selected, display an error message box and reset all selections over three leaving the first three selected.

5 5 When the Reset button is clicked, reset all selections to None and update the Selected Items list box. The form should look as follows:

6 6 Extra points: Add additional “user friendly” features as you see fit to enhance the program.


Download ppt "Exercise 5 Introduction to C# CIS-2320. 2 This exercise uses Group boxes, Radio buttons, List boxes, and Buttons to allow users to select food items from."

Similar presentations


Ads by Google