Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatio Temporal Database Management International Workshop Stdbm 99 Edinburgh Scotland September 10 11 1999 Proceedings Lncs 1678

Authors: Michael H. Bohlen ,Christian S. Jensen ,Michel O. Scholl

1999th Edition

3540664017, 978-3540664017

More Books

Students also viewed these Databases questions