You are on page 1of 7

==========================================================

Windows forms Application

Assignment 2 (week 6)

=====================================================================================

Goals:
The goal of Assignment 2 is to develop a Windows Forms Application .NET core named
AuctionWin described in document “List of sample projects”.

System description:
Your system must have the following main functions:

1) Bid an available item (its end date time >= system current day).
2) Place an item and display Bid status/delete an item placed by the given seller.

Your program output may be look like:

1. Flow of forms

Logout Message ReportGUI

Click menu “Logout” Click button “Bid status”

Click menu “Bid” Click menu “Item” Click button “Delete”

BidGUI MainGUI Confirm Delete


ItemGUI
Message?

Click button “Bid” Click menu “Login” Click button “Place a new item…”

BidAddGUI LoginAddGUI ItemAddGUI

Lab 3: Windows Forms Application Page 1


2. MainGUI form

Requirements:

- Click menu “Login” to open LoginGUI form as below

o Click button “Login” and system will search this member in Database:
 If it is not found, the following message will be displayed

 If it is found, MaiGUI form will enable menus Bid and Item as below

Lab 3: Windows Forms Application Page 2


3. BiGUI form

Requirements:

- List all available items (its end date time >= system current day).
- Click button “Bid” to open BidAddGUI as below:

Lab 3: Windows Forms Application Page 3


o Requirements:
 Format of Date Times: “dd/MM/yyyy HH:mm”
 Bid date time = system current day.
 Time remaining = end date time – bid date time. Format of time
remaining: the numbers days, hours and minutes.
 Bid price: default value = current price + minimum bid increment.
o Click button “Bid” to add this bid into Database, system will check:
 If the Bid price is invalid, the following messages will be displayed

 If the Bid price is valid, a new bid will be added into Database and the
following messages will be displayed

Lab 3: Windows Forms Application Page 4


4. ItemGUI form

Requirements:

- List all available items. The user can:


o Select “All” items by check the check box.
o Select only one item type by selecting an item type name in combo box “Item
type name”
- Place a new item by clicking button “Place a new item…” to open ItemAddGUI:

-
o Requirements:
 Item name (mandatory)
 Item description (optional)
 Current price : a double >= 0, and the default value = 0.
 Minimum bid increment: a double > 0 and default value = 10.
Lab 3: Windows Forms Application Page 5
End date time: format “dd/MM/yyyy, HH:mm” and the default value =
system current date time + 14 days.
o Click button “Place” to add a new bid into Database, the system will check:
 If item information is invalid, the following error messages will be
displayed:

 If item information is valid, this item will be saved into database and the
following message is displayed

- Delete the given item by clicking button “Delete”, the Confirm delete message will be
displayed:.

o Click button “Yes” to delete this item from Database and the following message will be
displayed.

Lab 3: Windows Forms Application Page 6


- List all bids for the given item by clicking button “Bid status”, the ReportGUI will be
displayed.

o Requirements:
 List of bids sorted by the descending order of bid prices.
 Bid date time: format dd/MM/yyyy HH:mm.
 Time remaining: format: the number of days, hours, minutes.

General Requirements:
 Display class ID, Group number and the member’s names in the status bas.
 Your system must follow all rules described in Auction system (in document “List of sample
projects”.
 Your system must check input data and allow the user to enter again.
 Use Database “Auction” given in site “cms” and must use “localhost” for the name of DB
server computer .
 Your solution name: ClassID_GroupN_A2.sln, and file name: ClassID_GroupN_A2.rar

Lab 3: Windows Forms Application Page 7

You might also like