0% found this document useful (0 votes)
12 views5 pages

Assignment1 Cars

The document describes a Windows form app that allows users to view and manage car data. The app displays a main CarGUI form listing all cars. Users can click buttons to view a car's details or login as an administrator. Administrators can add, edit, or delete cars, and log out of the administrator account. The app uses common MVC patterns with separate GUI, business logic, and data access layers.

Uploaded by

Le Ba Hai Ha K17
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views5 pages

Assignment1 Cars

The document describes a Windows form app that allows users to view and manage car data. The app displays a main CarGUI form listing all cars. Users can click buttons to view a car's details or login as an administrator. Administrators can add, edit, or delete cars, and log out of the administrator account. The app uses common MVC patterns with separate GUI, business logic, and data access layers.

Uploaded by

Le Ba Hai Ha K17
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Assignment 1

WEEK 6

You are asked to create a Windows form app .NET core that allows the user to
list all cars, add a new car or edit/delete the given car.
Only an administrator registered in file appsetings.json can create a new car or
edit/delete the given car.
Your program output may be look like as below:

I. Flow of forms

Confirm
Click menu “Logout” message
“Delete”? Click button “Delete”

Click button “Detail” Click button “Add a new”/”Edit”

CarDetailGUI CarGUI CarAddEditGUI

Click menu “Login”

LoginGUI

Page 1|5
II. Forms:
II.1. Form “CarGUI” for user

Requirements:
- List all cars (three properties: Make: string, Color: string, and
Petname: string).
- Show car detail by clicking button “Detail” to open
CarDetailGUI form as below

- Login as administrator by clicking menu “Login” to open


LoginGUI form as below

Page 2|5
If the name and password are the same of administrator stored
in appsettings.json file, form CarGUI for administrator will be
displayed
II.2. Form “CarGUI” for administrator

Requirements: Except functions for user, the administrator can:


- Logout
- Add a new car by clicking button “Add new” to open
CarAddEditGUI form as below

Requirements:

Page 3|5
Click button “Save” to add a new car into Database, then system
will check
o If car information is valid, a new car is added, the following
message will be displayed

- Edit the given car by clicking button “Edit” to open


CarAddEditGUI form as below

Click button “Save” to updated this car in Database and the


following message will be displayed:

- Delete the given car by clicking button “Delete” to open the


following confirm message

Page 4|5
Click button “Yes” to delete this car from Database and the
following message will be displayed

GUI DTL
Settings LoginGUI CarGUI
Note: Here is structure of your Project
CarDetailGUI CarAddEditGUI
Car

Repository

Allow to use Repository IRepository

DAL
CarDAO

Cars in Memory

Page 5|5

You might also like