Week4 GUI
Week4 GUI
Week4 GUI
Week 4
Software Engineering
Wk Lecture Practical
1 Introduction Canvas, Assessment Understand the case study.
Software lifecycle Write the user stories.
Design the database and the
2 Work as a group! Agile
software
Plan the work on the UI Review of the software requirements and
Set the version control
and the Use Case diagram. design
Review of the OOP concepts.
3 User Stories Git
4 Plan the work on the user Graphical User Interface. MVC pattern. Coding
stories Retrospective
Check if you are on track.
5 Plan the work on the From UML to C# code
database Create and connect the database to the
application.
6 Plan the current task Testing
Learn how to separate the back end code from the code
for the GUI.
Graphical User Interface (GUI)
Console Interface
Graphical User Interface (GUI)
Console Interface
Form
Text box
Button
Developing GUI in C#
9. Press Ok.
Projects and Solutions
Solution
Each Visual C# application is
called a project. A project
consists of several files.
A solution holds one or more
projects.
A new project open
The controls are dragged and dropped from the Toolbox onto
the form or a piece of code is written to add them to the form.
http://msdn.microsoft.com/en-us/library/8w7ed3ba
%28v=vs.71%29.aspx
How to handle the controls
FileName.Designer.cs
shows the auto generated
code.
Properties
Property Description
Name The name used to reference the control in the code.
DragDrop
DragEnter
Occur during a drag and drop operation.
DragLeave
DragOver
Events
Event Description
KeyDown/ Occur when the key is pressed/released while the
KeyUp control has focus.
KeyPress KeyDown occurs before KeyPressed.
GotFocus
Occurs when a control receives/loses focus.
LostFocus
https://www.homeandlearn.co.uk/csharp/csharp_s1p5.html
Questions