Fundamentals of.NET NYU-SCPS. Session 7 MS Certification Exams in brief MS Certification Exams in brief Custom Attributes Custom Attributes More on Collections.

Slides:



Advertisements
Similar presentations
.NET Framework Overview. Whats in the 1.1 Framework physical assemblies physical assemblies Hundreds of namespaces Hundreds of namespaces.
Advertisements

Windows Programming 1 Part 1 dbg --- Getting Acquainted with Visual Studio.NET and C#
.NET Framework Overview Pingping Ma Nov 16 th, 2006.
Chapter 5 Menus, Common Dialog Boxes, Sub Procedures, and Function Procedures Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 1.1 of…
Thursday Evening 6.30VB.NET Introduction 7.30Break for food 8.00VB.NET Migration 8.45Q & A 9.00Done.
A Guide to Oracle9i1 Creating an Integrated Database Application Chapter 8.
Chapter 13: Advanced GUI and Graphics
Event-based Programming Roger Crawfis. Window-based programming Most modern desktop systems are window-based. Non-window based environment Window based.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 18 Microsoft’s Approach 1 –.NET Mobile Framework Rob Pooley.
DT265-2 Object Oriented Software Development 2 Lecture 3 : Windows Programming Lecturer Pat Browne
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Microsoft Visual Basic 2012 CHAPTER ONE Introduction to Visual Basic 2012 Programming.
.NET, and Service Gateways Group members: Andre Tran, Priyanka Gangishetty, Irena Mao, Wileen Chiu.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-1.
A First Program Using C#
1 Introduction to.NET Framework. 2.NETFramework Internet COM+ Orchestration Orchestration Windows.NET Enterprise ServersBuildingBlockServices Visual Studio.NET.
Java Beans.
ASP.NET + Ajax Jesper Tørresø ITNET2 F08. Ajax Ajax (Asynchronous JavaScript and XML) A group of interrelated web development techniques used for creating.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Module 1: Introduction to C# Module 2: Variables and Data Types
Using the Actions Pane, Host Controls, and Smart Tags
Chapter 8: Writing Graphical User Interfaces
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Chapter 5 Menus, Common Dialog Boxes, Sub Procedures, and Function Procedures.
C# Programming Fundamentals of Object-Oriented Programming Fundamentals of Object-Oriented Programming Introducing Microsoft.NET Introducing Microsoft.NET.
Microsoft Access Lesson 1 Lexington Technology Center February 11, 2003 Bob Herring On the Web at
Chapter 5 Menus, Common Dialog Boxes, and Methods Programming in C#.NET © 2003 by The McGraw-Hill Companies, Inc. All rights reserved.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
Dr Dat Tran - Week 4 Lecture Notes 1 ToolStrip Programming Graphical User Interfaces PG (7110) University of Canberra School of Information Sciences &
.NET Framework Danish Sami UG Lead.NetFoundry
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
1 Hammad Khan. COURSE CONTENTS.NET Framework And C# SQL Server 2008 ADO.NET LINQ ASP.NET Dynamics Data ASP.NET MVC framework 2 Advance C# Concepts Windows.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 7 Using Menus, Common Dialogs, Procedures, Functions, and Arrays.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 13 – Graphical User Interfaces Part 2 Outline.
Graphical User Interface Concepts - Part 2 Session 09 Mata kuliah: M0874 – Programming II Tahun: 2010.
Object Oriented Software Development 9. Creating Graphical User Interfaces.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 17 Microsoft’s Approach 1 –.NET Mobile Framework Rob Pooley.
Module 1: Getting Started. Introduction to.NET and the.NET Framework Exploring Visual Studio.NET Creating a Windows Application Project Overview Use Visual.
ModelPedia Model Driven Engineering Graphical User Interfaces for Web 2.0 Sites Centro de Informática – CIn/UFPe ORCAS Group Eclipse GMF Fábio M. Pereira.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
C# Programming: From Problem Analysis to Program Design1 10 Advanced Object-Oriented Programming Features C# Programming: From Problem Analysis to Program.
PRIOR TO WEB SERVICES THE OTHER TECHNOLOGIES ARE:.
Collections Data structures in Java. OBJECTIVE “ WHEN TO USE WHICH DATA STRUCTURE ” D e b u g.
Object-Oriented Application Development Using VB.NET 1 Chapter 10 VB.NET GUI Components Overview.
Presented by Vishy Grandhi.  Architecture (Week 1) ◦ Development Environments ◦ Model driven architecture ◦ Licensing and configuration  AOT (Week 2)
PROGRAMMING IN C#. Collection Classes (C# Programming Guide) The.NET Framework provides specialized classes for data storage and retrieval. These classes.
Session 07 Module 13 - Collections. Collections / Session 7 / 2 of 32 Review  A delegate in C# is used to refer to a method in a safe manner.  To invoke.
Windows Forms in Visual Studio 2005: An in-depth look at key features Name: Joe Stegman Title: Lead Program Manager Session code.
Understanding Desktop Applications Lesson 5. Objective Domain Matrix Skills/ConceptsMTA Exam Objectives Understanding Windows Forms Applications Understand.
Windows Forms A new plattform for Windows-based application development.
.NET Mobile Application Development XML Web Services.
Extending SharePoint through Web Parts and ASP.NET 최승현 대리 한국마이크로소프트.
Compunet Corporation Programming with Visual Basic.NET Working with Menus and Dialog Boxes Week 14 Tariq Aziz and Kevin Jones.
Appendix A: Windows Forms. 2 Overview Describe the structure of a Windows Forms application –application entry point –forms –components and controls Introduce.
Understanding Desktop Applications Lesson 5. Understanding Windows Forms Applications Windows Forms applications are smart client applications consisting.
User Interface Programming in C#: Basics and Events Chris North CS 3724: HCI.
1 15. Building Applications with Windows Forms Why Use Windows Forms? Structure of Windows Forms Using Windows Forms Using Controls Code Samples.
INTRODUCTION BEGINNING C#. C# AND THE.NET RUNTIME AND LIBRARIES The C# compiler compiles and convert C# programs. NET Common Language Runtime (CLR) executes.
Introducing the Microsoft® .NET Framework
.Net A brief introduction to
Module 1: Getting Started
Creating a Windows Forms User Interface
Windows Forms and Smart Device Extensions in the End-to-End Application Hans Verbeeck Developer Consultant Microsoft EMEA.
Building ASP.NET Applications
.Net Framework: A Survey of Important Libraries
Windows Forms in Visual Studio 2005: An in-depth look at key features
Jim Fawcett CSE775 – Distributed Objects Spring 2012
Presentation transcript:

Fundamentals of.NET NYU-SCPS

Session 7 MS Certification Exams in brief MS Certification Exams in brief Custom Attributes Custom Attributes More on Collections More on Collections Additional Types with Examples Additional Types with Examples Generics with Examples Generics with Examples More on Streams More on Streams Detailed Socket example Detailed Socket example More on protocol clients and listeners with examples More on protocol clients and listeners with examples Building Windows Applications Building Windows Applications Creating a Simple Windows Form Creating a Simple Windows Form Using the Visual Studio.NET Designer Using the Visual Studio.NET Designer Creating a Windows Forms Application Creating a Windows Forms Application Populating the TreeView Controls Populating the TreeView Controls Handling TreeView events Handling TreeView events Deployment Projects Deployment Projects Setup Project Setup Project

Microsoft Certifications Technology Specialist NET Framework 2.0 Application Development Foundation NET Framework 2.0 Windows Based Applications NET Framework 2.0 Web Based Applications NET Framework 2.0 Web Based Applications

– App Development Foundation Developing applications that use system types and collections (15%) Developing applications that use system types and collections (15%) Implementing service processes, threading, and application domains in a.NET Framework application (11%) Implementing service processes, threading, and application domains in a.NET Framework application (11%) Embedding configuration, diagnostic, management, and installation features into a.NET Framework application (14%) Embedding configuration, diagnostic, management, and installation features into a.NET Framework application (14%) Implementing serialization and input/output functionality in a.NET Framework application (18%) Implementing serialization and input/output functionality in a.NET Framework application (18%) Improving the security of the.NET Framework applications by using the.NET Framework 2.0 security features (20%) Improving the security of the.NET Framework applications by using the.NET Framework 2.0 security features (20%) Implementing interoperability, reflection, and mailing functionality in a.NET Framework application (11%) Implementing interoperability, reflection, and mailing functionality in a.NET Framework application (11%) Implementing globalization, drawing, and text manipulation functionality in a.NET Framework application (11%) Implementing globalization, drawing, and text manipulation functionality in a.NET Framework application (11%)

– Windows Based Applications Creating a UI for a Windows Forms Application by Using Standard Controls Creating a UI for a Windows Forms Application by Using Standard Controls Integrating Data in a Windows Forms Application Integrating Data in a Windows Forms Application Implementing Printing and Reporting Functionality in a Windows Forms Application Implementing Printing and Reporting Functionality in a Windows Forms Application Enhancing Usability Enhancing Usability Implementing Asynchronous Programming Techniques to Improve the User Experience Implementing Asynchronous Programming Techniques to Improve the User Experience Developing Windows Forms Controls Developing Windows Forms Controls Configuring and Deploying Applications Configuring and Deploying Applications

– Web Based Applications Creating and Programming a Web Application Creating and Programming a Web Application Integrating Data in a Web Application by Using ADO.NET, XML, and Data-Bound Controls Integrating Data in a Web Application by Using ADO.NET, XML, and Data-Bound Controls Creating Custom Web Controls Creating Custom Web Controls Tracing, Configuring, and Deploying Applications Tracing, Configuring, and Deploying Applications Customizing and Personalizing a Web Application Customizing and Personalizing a Web Application Implementing Authentication and Authorization Implementing Authentication and Authorization Creating ASP.NET Mobile Web Applications Creating ASP.NET Mobile Web Applications

– Distributed Applications Creating and Accessing XML Web Services Creating and Accessing XML Web Services Configuring and Customizing a Web Service Application Configuring and Customizing a Web Service Application Creating, Configuring, and Deploying Remoting Applications Creating, Configuring, and Deploying Remoting Applications Implementing Asynchronous Calls and Remoting Events Implementing Asynchronous Calls and Remoting Events Implementing Web Services Enhancements (WSE) 3.0 Implementing Web Services Enhancements (WSE) 3.0 Creating and Accessing a Serviced Component and Using Message Queuing Creating and Accessing a Serviced Component and Using Message Queuing

Custom Attributes Programmers can define custom attributes for their “targets” and use them in their programs Programmers can define custom attributes for their “targets” and use them in their programs These attributes may be discovered at run time by class methods These attributes may be discovered at run time by class methods Attribute target is defined with the Attribute class definition – which may be one of – All, Assebly, Class, Constructor, Delegate, Enum, Event, Field, Interface, Method, Module, Parameter, Property, ReturnValue, or Struct Attribute target is defined with the Attribute class definition – which may be one of – All, Assebly, Class, Constructor, Delegate, Enum, Event, Field, Interface, Method, Module, Parameter, Property, ReturnValue, or Struct Attributes are not inherited Attributes are not inherited Attributes do not occupy any storage space in the heap with class data members – instead they are stored in the “metadata” section of the Assembly and are retrieved using Reflection API Attributes do not occupy any storage space in the heap with class data members – instead they are stored in the “metadata” section of the Assembly and are retrieved using Reflection API

Arrays Fast random access Insertions will require moving memory Deletions will require moving memory Size is predetermined Extending will require moving memory Data is arranged using simple indexing algorithm Characteristics Scheme

Lists Slow random access Insertions are quick Deletions are quick Size is unlimited Can extend endlessly headtail SchemeCharacteristics Data is arranged using pointers. Head points to the first element and Tail points to last Next in each node points to the next element

Hash Set Quite fast random access Insertions are quick Deletions are quick Size is Unlimited Extending will not require moving memory Characteristics Scheme Data is arranged using buckets. HashCode determines bucket Equals determines “match” Cannot have duplicate values in this “set” hash codes

Hash Table Quite fast random access Insertions are quick Deletions are quick Size is Unlimited Extending will not require moving memory key197key198key199 key200key201key202key203 Characteristics Scheme Data is arranged using buckets. HashCode of key determines bucket Equals of key determines “match” Cannot have duplicate “keys” Value hangs off of keys and can be duplicated key hash codes value197value198value199 value200value201value202value203

More Collection Classes Concrete Collection classes Concrete Collection classes ArrayList, Hashtable, Queue, SortedList, Stack ArrayList, Hashtable, Queue, SortedList, Stack Specialized Collections Specialized Collections ListDictionary – implements Dictionary using a singly linked list ListDictionary – implements Dictionary using a singly linked list HybridDictionary – uses ListDictionary for small collections (of up to 10 items) and switches to a Hashtable for a large collection HybridDictionary – uses ListDictionary for small collections (of up to 10 items) and switches to a Hashtable for a large collection StringDictionary – implements Dictionary where both key and value are strings instead of Objects StringDictionary – implements Dictionary where both key and value are strings instead of Objects NameValueCollection – represents a collection of “case insensitive” String keys and String values that may be accessed by key or by index NameValueCollection – represents a collection of “case insensitive” String keys and String values that may be accessed by key or by index Concrete Generics Concrete Generics Collection, Comparer, Dictionary, List, Queue, SortedDictionary, Stack, LinkedList, ReadOnlyCollection Collection, Comparer, Dictionary, List, Queue, SortedDictionary, Stack, LinkedList, ReadOnlyCollection

Network Examples Socket Server Socket Server Socket Client Socket Client HttpListener HttpListener MailClient MailClient

System.Windows.Forms Core infrastructure: Types that represent the core operations of a.NET Forms program ( Form, Application, etc.) Core infrastructure: Types that represent the core operations of a.NET Forms program ( Form, Application, etc.) Controls: Types used to create rich UIs ( Button, ProgressBar, DataGridView etc.) Controls: Types used to create rich UIs ( Button, ProgressBar, DataGridView etc.) Components: Types that do not directly derive from “Control” but provide visual features ( ToolTip, Timer, etc.) Components: Types that do not directly derive from “Control” but provide visual features ( ToolTip, Timer, etc.) Common dialog boxes: Number of canned dialog boxes for common operations ( OpenFileDialog, PrintDialog, etc.) Common dialog boxes: Number of canned dialog boxes for common operations ( OpenFileDialog, PrintDialog, etc.)

Classes/Types Application, Form Application, Form Button, CheckBox, ComboBox, DateTimePicker, ListBox, LinkLabel, MaskedTextBox, MonthCalendar, PictureBox, TreeView Button, CheckBox, ComboBox, DateTimePicker, ListBox, LinkLabel, MaskedTextBox, MonthCalendar, PictureBox, TreeView FlowLayoutPanel, TableLayoutPanel FlowLayoutPanel, TableLayoutPanel ColorDialog, OpenFileDialog, SaveFileDialog, FontDialog, PrintPreviewDialog, FolderBrowserDialog ColorDialog, OpenFileDialog, SaveFileDialog, FontDialog, PrintPreviewDialog, FolderBrowserDialog Menu, MainMenu, MenuItem, ContextMenu, MenuStrip, ContextMenuStrip Menu, MainMenu, MenuItem, ContextMenu, MenuStrip, ContextMenuStrip StatusBar, Splitter, ToolBar, ScrollBar, StatusStrip, ToolStrip StatusBar, Splitter, ToolBar, ScrollBar, StatusStrip, ToolStrip

Building Windows Apps Derive a new class from System.Windows.Forms.Form Derive a new class from System.Windows.Forms.Form Call Application.Run with an instance of this Form Call Application.Run with an instance of this Form namespace FormExample { public class MainWindow : Form { } public class Program { static void Main() { Application.Run(new MainWindow()); }

Application class Defines static members that allow you to control various behaviors of a Windows Forms application. Defines static members that allow you to control various behaviors of a Windows Forms application. Defines a number of properties Defines a number of properties Defines various events and their handlers such as ApplicationExit, Idle etc. Defines various events and their handlers such as ApplicationExit, Idle etc.

Form class Defines static members that allow you to control various behaviors of a Windows Forms application. Defines static members that allow you to control various behaviors of a Windows Forms application. Defines a number of properties Defines a number of properties Defines various events and their handlers such as ApplicationExit, Idle etc. Defines various events and their handlers such as ApplicationExit, Idle etc. Can be used to create standard, tool, borderless, and floating windows. Can be used to create standard, tool, borderless, and floating windows. The multiple-document interface (MDI) form can contain other forms called MDI child forms The multiple-document interface (MDI) form can contain other forms called MDI child forms Contains properties to determine the appearance, size, color and other window management features of the window or dialog box. Contains properties to determine the appearance, size, color and other window management features of the window or dialog box.

Control Class Base class of controls such as Button, CheckBox etc Base class of controls such as Button, CheckBox etc Implements basic functionality required to display information to the user. Implements basic functionality required to display information to the user. Handles user input through keyboard and and mouse. Handles user input through keyboard and and mouse.

Events in Form class Several events are fired in the process of loading and creating a form Several events are fired in the process of loading and creating a form Load event is fired after the Form is created Load event is fired after the Form is created Activated and Deactivated events are fired when the form goes in (and out of) focus Activated and Deactivated events are fired when the form goes in (and out of) focus Closing event is fired when the user tries to close the form Closing event is fired when the user tries to close the form

Menus MenuStrip is the main control for building menus which may be fixed or floating MenuStrip is the main control for building menus which may be fixed or floating ToolStripMenuItem represents a menu item contained in MenuStrip ToolStripMenuItem represents a menu item contained in MenuStrip ToolStripComboBox is combo box embedded in the menu ToolStripComboBox is combo box embedded in the menu ToolStripSeparator is a simple line separator ToolStripSeparator is a simple line separator ToolStripTextBox is a text box embedded in a menu item ToolStripTextBox is a text box embedded in a menu item

Build GridExample Application