Search Here

CS411 Assignment No 2 Solution - Spring 2019

You have to develop a WPF application in C#.NET with the following functional requirements:
When the application starts a window similar to the following window appears:



As you can see this window has threetext boxes, one dropdown menu, two radio buttons, one button and one image on left.

All threetext boxes will have following values written
o   Name of person you are sending email.
o   VUID(that should be your own ID)
o   Text box with the message you want to save.

·         The user may type something in the text box.Its font must be Arial and size 14.
·         Upon clicking “Submit” button, one of the following things may happen:
o   If any of field is blank it will show a dialog box.
Ø  VUID field is blank
Ø  Name field is blank
Ø  Write proper message.

o   Message has been saved dialog box. Dialog box title should be your “VUID”

·         Upon clicking the “Close” button or by closing the application window from the top right corner “X” button or if the user has pressed Alt+F4 from the key board then on of the following things will happen:
o   If the user has not changed the text in the text box since the last save then the application will terminate.
o   If the user has changed the text in the text box since last save then the following message box will appear:

§  If the user clicks Cancel button of the message box then nothing will happen (application will not terminate).
§  If the user clicks No button then application will terminate.
§  If the user clicks Yes button then the Save File Dialog will appear allowing user to save the text in text box as a text file in the selected location. After the user has saved the file then the application will terminate.



To get unique solution code of this assignment comment below or mail me at ad.hassan69@gmail.com

Post a Comment

0 Comments