Download presentation
Presentation is loading. Please wait.
Published byNelson Bryan Modified over 6 years ago
1
Getting Started on The Project Bank in Visual Studio
(Building the Presentation Layer - KISS)
2
Figuring out what to do! Every skill was not learnt over night and certainly not without proper help and support.
3
Tools to Help us We are… Taking time to think about the problem
Taking time to think about the problem Working collaboratively Using documentation to help us model the problem System specification Event tables Use case diagrams / descriptions Class diagrams Using tools to support us (Enterprise Architect and Visual Studio)
4
Additional Tools Git Hub Paper based designs
Smoke and mirrors prototype Test Driven Development
5
Git Hub https://github.com/
A tool to allow you to share code between members of your team Includes version control to ensure that you have the most up to date version of your code
6
Implementing the Use Cases
At some point we will need to turn our use case diagrams into presentation layer artefacts. In creating a web based interface this will involve ASP.NET web forms In creating a desktop application this will require a Windows executable file using Windows forms
7
Paper Based Designs Pen and paper is fast and cheap
If your design is way off the mark of the client’s expectations then it isn’t too painful to change it I often use rough scribbles on paper just to plan out ideas if I am not sure what I need to do May be turned into story boards
8
The Smoke and Mirrors Prototype
Firstly it is a tool to allow you to mock up the system to the client quickly with a minimum of effort on your part. Secondly it provides a useful discussion point with the user / client to establish if you are on the correct track. Even the most experienced of developers have incorrect assumptions about user interaction.
9
The DVD swap shop
10
Response.Redirect Used to transfer us between web forms
11
.Visible .Enabled & .Text Properties
12
The Benefits of Prototyping
Show your system design to your client to see if it is what they are looking for Created very quickly and easily modified to suit the needs of your client Should look like a professional piece of software however the functionality is just an illusion Once you know that your prototype design is suitable then you may get on with the task of making the code work However – now that you have your presentation layer clearly defined it provides a bigger insight into how the middle layer code will need to work along with the sort of tables and attributes the data layer will need
13
Solutions and Projects in Visual Studio
Visual Studio allows us to create projects and solutions A project may be a web site, a desktop application, an application based in the cloud, a mobile phone app, class library etc. In Visual Studio we have the option of adding projects to a solution A solution is a master container that allows us to work on multiple projects at the same time also to create a single class library and link that class library to the projects in the solution
14
Extended Architecture
PBFrontEnd (Interface) Data Layer Database Middle Layer Business Logic (Classes) PBBackOffice
15
Allowing us to Share Data Between Multiple Projects…
16
Thick and Thin Layers When we are creating any code it is always a good idea to write with an eye to re-use. Any code in the middle layer class library may be shared across multiple projects Any code that is in the presentation layer is much harder to share with other projects We want to create as little code in the presentation layer as possible
17
The Class Diagram We will think about the code that handles the collection class clsAddressCollection - clsAddress
18
Populating a List With a Loop
19
Keep the Presentation Layer Simple
20
Demo of Configuring Visual Studio
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.