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)
Figure1. Snapshot obtained after listing all possible person entries.
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
"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 WinterfellStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started