Question: Programming Language C# I need this assignment As soon as possible please help me Purpose: The purpose of this assignment is to help you: Become

Programming Language C#

I need this assignment As soon as possible please help me

Purpose: The purpose of this assignment is to help you:

  • Become familiar with WPF Data binding
  • Learn to use advanced GUI

Question 1 [15 marks]

(Restaurant Bill Calculator) A restaurant wants a WPF app that calculates a tables bill. The app

should display all following menu items (shown below) in four ComboBoxes. Each ComboBox should contain a category of food offered by the restaurant (Beverage, Appetizer, Main Course and Dessert).

The user can choose from one of these ComboBoxes to add an item to a tables bill. As each item is

selected in the ComboBoxes, add to the DataGrid Control, and add the price of that item to the bill. The user can click the Clear Bill Button to restore the Subtotal:, Tax: and Total: fields to $0.00. Add your student name and your companys (i.e., Centennial College) logo at the status bar, when user clicks the logo, companys website is opened in Internet explorer.

Question2 [5 marks]

(Login User Control) Create a UserControl (similar as below) called LoginUserControl that contains two labels and two TextBoxs. LoginUserControl must provide public read-only properties that allow an application to retrieve the user inputs (i.e., login name and password). Write a driver to test LoginUserControl.

Rubric

Question 1

Functionality

Marks

WPF GUI (XAML)

2

Data Binding + ObseverableCollection

1+1

Status Bar

1

Functionality

  1. Selected item(s) from combobox is added to the DataGrid row; if the selected item(s) exists in the DataGrid, change the quantity of the corresponding items rather than add new row
  2. The selected item can be removed from the DataGrid
  3. The quantity can be updated directly in DataGrid
  4. The invoice is generated correctly

3+2+2+2

Overall,

1

Question 2

Functionality

Marks

UserControl

1.5

Dependency Property

1.5

Application to use LoginUserControl

2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!