Comments 0

Document transcript

In this five-day instructor-led course, developers learn the fundamental skills that are required to design and develop object-oriented applications for

the Web and Microsoft Windows® by using Microsoft Visual C#® .NET and the Microsoft Visual Studio®.NET development environment. This course provides an alternative entry point for less experienced programmers who are notfamiliar with object-oriented design and programming with Windows or the Web.

Audience

This course is intended for:

•

Devel潰ers wh漠are n潴 familiar with 潢ject-潲iented pr潧ramming.

•

Devel潰ers wh漠understand c潭puter pr潧ramming, but may have learned pr潧ramming by using a n潮-graphical language in auniversity.

This module presents the concepts that are central to the Microsoft .NET Framework and platform, and the Microsoft Visual Studio.NET integrated development environment (IDE); describes how to work in the development environment; and explains how to useVisual Studio .NET to create and build applications based on Microsoft .NET.

Lessons

•

Intr潤ucti潮 t漠.NET and the .NET Framew潲k

•

Expl潲ing Visual Studi漠.NET

•

Creating a Wind潷s Applicati潮 Pr潪ect

After c潭pleting this m潤ule, students will be able t漺

•

Identify c潭p潮ents 潦 the .NET platform and the .NET Framew潲k by their functi潮.

•

Expl潲e the Visual Studi漠devel潰ment envir潮ment.

•

Create a basic applicati潮 based 潮 Micr潳潦t Wind潷s.

Module 2: Understanding C# Language Fundamentals

This module explains the syntax and structure of

the C# programming language. These topics are essential for students tounderstand in order to be successful in the remainder of the course; however, it is likely that most students will come intothe classwith some experience applying these concepts inother languages.

Lessons

•

Understanding the Fundamentals 潦 a C⌠Pr潧ram

•

Using C⌠Predefined Types

•

Writing Expressi潮s

•

Creating C潮diti潮al Statements

•

Creating Iterati潮 Statements

Lab 2.1: Writing a Savings Account Calculator

•

Write a Savings Calculat潲

•

Extending the Savings Calculator

After c潭pleting this m潤ule, students will be able t漺

•

Understand the fundamentals 潦 a C⌠pr潧ram.

•

Use C⌠predefined types.

•

Write expressi潮s.

•

Create c潮diti潮al statements.

•

Create iterati潮 statements.

Module 3: Creating Objects in C#

This module introduces the fundamentals of object-oriented programming, including the concepts of objects, classes, and methods.

Lessons

•

Defining a Class

•

Declaring Meth潤s

•

Using C潮struct潲s

•

Using Static Class Members

Lab 3.1: Creating Classes in C#

•

Creating the Bank Acc潵nt Objects

After c潭pleting this m潤ule, students will be able t漺

•

Define a class.

•

Declare meth潤s.

•

Use c潮struct潲s.

•

Use static class members.

Module 4: Implementing Object-Oriented Programming Techniques in C#

This module introduces the fundamentals of object-oriented programming, including the concepts of objects, classes, and methods.

Lessons

•

Designing Objects

•

Using Inheritance

•

Using P潬ym潲phism

Lab 4.1: Creating Classes in C#

•

Creating the Bank Acc潵nt Objects

After c潭pleting this m潤ule, students will be able t漺

•

Encapsulate inf潲mati潮 in an 潢ject.

•

Create an 潢ject that inherits functi潮ality fr潭 an潴her 潢ject.

•

Implement p潬ym潲phism t漠use abstract classes.

Module 5: Programming with C#

This module introduces various data structures, including arrays (the System.Array class) and collections (classes in theSystem.Collections namespace), and explains when to use each of these data structures in an application. The module alsointroduces interfaces, describes the concepts and syntax of exception handling, and explains delegates and their use in event

handling.

Lessons

•

Using Arrays

•

Using C潬lecti潮s

•

Using Interfaces

•

啳ing Excepti潮 Handling

•

Using Delegates and Events

Lab 5.1: Using Arrays

•

S潲ting Numbers in an Array

Lab 5.2 (optional): Using Indexers and Interfaces

•

Writing the Check Pick-up Applicati潮

•

Using Interfaces

Lab 5.3 (optional): Using Delegates

and Events

•

W潲king with Events and Delegates

After c潭pleting this m潤ule, students will be able t漺

•

Create and use arrays.

•

Use classes in the System.C潬lecti潮s namespace.

•

Use the ArrayList class.

•

Use interfaces.

•

Handle excepti潮s.

•

Create and call a delegate.

•

Use delegates t漠handle events.

Module 6: Building .NET-based Applications with C#

This module presents the Microsoft .NET Framework class library, the Object Browser, and methods that are inherited from theSystem.Object class. This module also explains how to format strings and numbers and how to use streams and files.

Lessons

•

Examining the .NET Framew潲k Class Library

•

Overriding Meth潤s fr潭 System.Object

•

F潲matting Strings and Numbers

•

Using Streams and Files

Lab 6.1: Using Streams

•

C潮verting a Binary File t漠a Text File

After c潭pleting this m潤ule, students will be able t漺

•

Identify a namespace in the .NET Framew潲k class library by its functi潮.

•

Override and implement the T潓tring meth潤.

•

F潲mat

strings, currency, and date values.

•

Read and write b潴h binary and text files.

Module 7: Using ADO.NET to Access Data

This module explains how to use Microsoft ADO.NET and the objects in the System.Data namespace to access data in a database.Itdescribes how to create an application based on Microsoft Windows that uses ADO.NET. This module also describes how to use thatapplication to connect to a database, create a query, and use a DataSet object to manage the data, bind data to controls, and

insert, update, and delete records in a database.

Lessons

•

ADO.NET Architecture

•

Creating an Applicati潮 That Uses ADO.NET t漠Access Data

•

Changing Database Rec潲ds

Lab 7.1: Creating a Data Access Application with ADO.NET

•

Creating a Simple Database Table Viewer

•

Writing a Simple Database Table Viewer

•

(If time permits): Creating a Simple Database Table Viewer

Lab 7.2 (optional): Creating a Windows Application That Uses ADO.NET

•

Creating a Wind潷s Applicati潮 That Uses ADO.NET

•

(If time permits): Writing an ADO.NET Applicati潮 with Wind潷s F潲ms

After c潭pleting this m潤ule, students will be able t漺

•

Describe ADO.NET.

•

Create a Wind潷s-based applicati潮 that uses ADO.NET.

•

C潮nect t漠a database.

•

Create a query.

•

Use a DataSet 潢jectt漠manage data.

•

Bind a DataGrid 潢ject t漠a data s潵rce.

•

Insert, update, and delete a database rec潲d.

Module 8: Creating Windows-based Applications

This module describes how to create menus, common and custom dialog boxes, status bars, and toolbars to enhance the usabilityof an application based on Microsoft Windows. The purpose of this module is to allow the students to apply their newly acquired C#language skills and develop useful Windows-based applications.

Lessons

•

Creating the Main Menu

•

Creating and Using C潭m潮 Dial潧 B潸es

•

Creating and Using Cust潭 Dial潧 B潸es

•

Creating and Using T潯lbars

•

Creating the Status Bar

•

Creating and Using C潭b漠B潸es

Lab 8.1: Building Windows Applications

•

Adding C潭m潮 Dial潧 B潸es t漠an Applicati潮

•

Creating and Using Cust潭 Dial潧 B潸es

•

Creating a Status Bar

•

(If Time Permits): Using C潭b潂潸 C潮tr潬s

After c潭pleting this m潤ule, students will be able t漺

•

Create the main menu.

•

Create and use c潭m潮 dial潧 b潸es.

•

Create and use cust潭 dial潧 b潸es.

•

Create and use t潯lbars.

•

Create the status bar.

•

Create and use c潭b漠b潸es.

Module 9: Using XML Web Services in a C# Program

The module introduces the System.Web.Services namespace and the process of building and consuming XML Web services in a C#

application.

Lessons

•

C潮suming an XML Web Service

•

Building an XML Web Service

Lab 9.1: Using XML Web Services

•

Writing the Office Building Estimati潮 Applicati潮

After c潭pleting this m潤ule, students will be able t漺

•

Request data fr潭 an XML Web service fr潭 within a C⌠applicati潮.

•

Build an XML Web service.

Module 10: Creating a Web Application with Web Forms

In this module, students learn that in Microsoft Visual Studio .NET, you can use Web Forms to create programmable Web pages.This module introduces the System.Web.UI namespace and describes how to create a Web application with a Web Form. Studentslearn how to add controls to a Web Form and then use the Web Form to submit data and respond to events. The module alsocovers Microsoft ASP.NET state management, security, and configuration settings.

Lessons

•

Creating a Web F潲ms Applicati潮

•

Accessing Data by Using a Web F潲ms Applicati潮

•

C潮figuring ASP.NET Applicati潮 Settings

Lab 10.1: Developing anASP.NET Web Application

•

C潭pleting the User Authenticati潮 Validati潮 C潤e

•

C潭pleting the C潤e f潲 the Master.aspx F潲m

•

Testing the Applicati潮

After c潭pleting this m潤ule, students will be able t漺

•

Create a Web F潲ms applicati潮.

•

Handle events 潮 a Web F潲ms applicati潮.

•

Access data fr潭 a Web F潲ms applicati潮.

•

C潮figure ASP.NET applicati潮 settings.

Module 11: Application Settings and Deployment

This module introduces the procedures that are involved in deploying a C# applicationby using Microsoft Visual Studio .NET. Itexplains how to deploy both Web-based applications and applications that are based on Microsoft Windows. It also describes how tostore user preferences and configure application settings.

Lessons

•

W潲king with Applicati潮 Settings

•

Depl潹ing Applicati潮s

Lab 11.1: Deploying an Application

•

Adding a Setup Pr潪ect t漠an Existing Applicati潮

•

Installing and Testing the Setup Applicati潮

Lab 11.2 (optional): Working with Application Settings

•

Adding the UserPreferences Class

•

Adding User Preferences t漠the F潲m L潡d Event

•

Adding User Preferences t漠the l潡dItem彃lick Event

•

Declaring an Instance 潦 the UserPreferences Class in the Opti潮s F潲m

Setting the Checkb潸 C潮tr潬s t漠the Values C潮tainedin the Registry

•

Save the Checkb潸 C潮tr潬s Values t漠the Registry

•

Testing the Z潯 Inf潲mati潮 Applicati潮

After c潭pleting this m潤ule, students will be able t漺

•

W潲k with applicati潮 settings.

•

Depl潹 an applicati潮.

Module 12: Exploring Future Learning

This module provides an opportunity for students to explore some of the more advanced

capabilities of C#, to practice the knowledge and skills that they acquired during the course,