PeterBox Homepage
Hallo, willkommen auf Singapur, 9.9.10 15:11:18

.NET Development Handbook

.NET Development Handbook .NET Development Handbook .NET Development Handbook .NET Development Handbook
.NET Development Handbook

5 Windows Client

5.1User Interface
5.1.1General User Interface Guidelines
5.2Forms
5.3Controls
5.3.1Button
5.3.2DataGrid
5.3.3TabControl
5.4Database Access from Windows Client
5.5Exception Handling Windows Client
5.6Testing Windows Client
5.6.1Individual Tests Windows Client
5.6.2Peer Review Windows Client
5.6.3Integration Test Windows Client
5.6.4Stress Test Windows Client

I didn抰 have much time yet to experiment with windows clients. But here we go:

5.1 User Interface

Code which is not user interface related or code which is used be more than one screen should be written in a class file.

5.1.1 General User Interface Guidelines

• If possible, filter illegal keys (like 慳拝抸?if a number is expected).

• Each user input needs to be validated

• Support the 慣ab?key

• As many activities as possible should be accessible through access keys (ALT + x)

5.2 Forms

???

inheritance ???

5.3 Controls

• The last part in the name of a control instance should be the name of the control type:

• If the size of a form changes, at least one control to several sides of a from.

RetrieveButton, CustomerNameTextBox

Don抰 use abbreviations for control types like btn or tbx

5.3.1 Button

Define an access key for every button by using & in the text property of a button: ?amp;Retrieve? This allows to access the button from the keyboard pressing ALT + R instead using the mouse.

5.3.2 DataGrid

• Use PeterBox.DataGridToolTip which provides automatically a tooltip for every field. This is very useful if the text in a field occupies more than 1 line or is very wider than its column.

• Adjust the width of at least one column if the width of the DataGrid changes.

5.3.3 TabControl

Start the name of all controls on one tab-page with the same word:

OrderIDTextBox, OrderRetrieveButton, OrderGrid

CustomerIDTextBox, CustomerRetrieveButton, CustomerGrid

5.4 Database Access from Windows Client

On a Windows clients it makes sense to access bigger chunks of data and to store it in a DataSet which allows the user to easily navigate through relational data.

5.5 Exception Handling Windows Client

???

5.6 Testing Windows Client

Define a special console project which will run all the tests defined in the middle tier.

5.6.1 Individual Tests Windows Client

• Test with different regional settings and languages, is everything properly translated ?

• Test shortcut keys in all languages

• Test tab key, enter key

• Test how it looks when windows size is changed

5.6.2 Peer Review Windows Client

???

5.6.3 Integration Test Windows Client

???

5.6.4 Stress Test Windows Client

???

Chapters Overview

1Introduction
2Overview Development Process
3General Guidelines
4.NET Framework
5Windows Client
6ASP.NET
7HTML
8Cascading Style Sheets
9ADO.NET
10SQL Server
11Appendix
  Version 0.8b contact@peterbox.com ©2002 Peter Huber