Question: Write a Windows Form-based application IN C# to manipulate the Westeros database (see end-notes). The apps GUI consists of (a) an OptionGroup container holding radio

Write a Windows Form-based application IN C# to manipulate the Westeros database (see end-notes). The apps GUI consists of (a) an OptionGroup container holding radio buttons for each castle (Winterfell, Dragonstone, KingsLanding, all of them), (b) three buttons, (c) a multi-line TextBox.

The functioning of the application is suggested by the images shown below.

First the user selects a Castle option (the default is All castles)

When the user clicks on the button Get People from selected castle you will search the database retrieving all persons from the given castle. The result should be displayed in the textbox (see Figure1).

Clicking the button Make selected people one year younger sends to the database an update request targeting the people of the selected castle. Their age values should be reduced by one. Clicking on the Make selected people one year older produces analogous results. (see Figure2)

Write a Windows Form-based application IN C# to manipulate the Westeros database

Figure1. Snapshot obtained after listing all possible person entries.

(see end-notes). The apps GUI consists of (a) an OptionGroup container holding

Figure2. Image of Winterfell heroes after rejuvating them by one year.

The database will be simulated (as opposed to a real and persistent entity). In this project the database is implemented as a generic list holding Hero objects. Each Hero object includes: id, name, age, and castle. STEPS: 1- Implement the Hero class. 2- Create the List container. 3- Load into the list the following entries:

"100", "Arya Stark", "12", "Winterfell"

"200", "Daenerys Targaryen", "20", "Dragonstone"

"300", "Cersei Baratheon", "35", "KingsLanding"

"400", "Tiryon Lannister", "32", "KingsLanding"

"500", "Jon Snow", "21", "Winterfell"

HINT: A good moment for the list to be created is when the app's form is loaded for the first time.

CASTLE O All castles O Winterfell O Dragonstone O Kingslanding Get people from selected castle Make selected people one year YOUNGER Make selected people one year OLDER 14 Winterfell 1ee Arya stark 2e0 Daenerys Targaryen 17 Dragonstone 3ee Cersei Baratheon 36 KingsLanding 4ee Tiryion Lannister 33 ingsLanding 5ee Jon Snow 2e Winterfell

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!