Microsoft Visual C# 2010 Step by Step Ebook

Total Page:16

File Type:pdf, Size:1020Kb

Microsoft Visual C# 2010 Step by Step Ebook Table of Contents Acknowledgments ................................................. xvii Introduction ............................................. xix Who This Book Is For................................................ .xix Finding Your Best Starting Point in This Book............................ xx Conventions and Features in This Book ................................ .xxi Conventions .................................................. .xxi Other Features ................................................ xxii Prerelease Software ................................................. xxii Hardware and Software Requirements ................................ xxii Code Samples ..................................................... .xxiii Installing the Code Samples.................................... .xxiii Using the Code Samples....................................... .xxiii Uninstalling the Code Samples ................................. .xxix Find Additional Content Online....................................... xxx Support for This Book ............................................... xxx Questions and Comments ...................................... xxx Introducing Microsoft Visual C# and Microsoft Visual Studio 2010 Welcome to C# ............................................ 3 Beginning Programming with the Visual Studio 2010 Environment......... 3 Writing Your First Program............................................ 8 Using Namespaces.................................................. 14 Creating a Graphical Application...................................... 17 Chapter 1 Quick Reference........................................... 26 Working with Variables, Operators, and Expressions............ 27 Understanding Statements........................................... 27 Using Identifiers .................................................... 28 Identifying Keywords .......................................... 28 Using Variables ..................................................... 29 Naming Variables.............................................. 30 Declaring Variables ............................................ 30 Working with Primitive Data Types.................................... 31 Unassigned Local Variables ..................................... 32 Displaying Primitive Data Type Values ............................ 32 Using Arithmetic Operators .......................................... 36 Operators and Types ........................................... 37 Examining Arithmetic Operators................................. 38 Controlling Precedence......................................... 41 Using Associativity to Evaluate Expressions ....................... 42 Associativity and the Assignment Operator ....................... 42 Incrementing and Decrementing Variables............................. 43 Prefix and Postfix .............................................. 44 Declaring Implicitly Typed Local Variables.............................. 45 Chapter 2 Quick Reference........................................... 46 Writing Methods and Applying Scope........................ 47 Creating Methods .................................................. 47 Declaring a Method............................................ 48 Returning Data from a Method.................................. 49 Calling Methods............................................... 51 MSP_Sampler_Front_Matter_7.38_9.pdf 1 4/22/10 4:34 PM Microsoft Press Ebooks—Your bookshelf on your devices! You can now purchase Microsoft Press ebooks from O'Reilly Media. When you buy ebooks through oreilly.com you get lifetime access to the book, and whenever possible we provide it to you in four, DRM-free file formats—PDF, .epub, Kindle-compatible .mobi, and Android .apk—that you can use on the devices of your choice. Our ebook files are fully searchable and you can cut-and-paste and print them. We also alert you when we’ve updated the files with corrections and additions. Learn more at http://oreilly.com/ebooks/ Buy 2 books, get the 3rd FREE! Use discount code: OPC10 You can also purchase Microsoft Press ebooks through iTunes, the Android Marketplace, and Amazon.com. Spreading the knowledge of innovators oreilly.com PUBLISHED BY Microsoft Press A Division of Microsoft Corporation One Microsoft Way Redmond, Washington 98052-6399 Copyright © 2010 by John Sharp All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher. Library of Congress Control Number: 2009939912 Printed and bound in the United States of America. 1 2 3 4 5 6 7 8 9 QWT 5 4 3 2 1 0 Distributed in Canada by H.B. Fenn and Company Ltd. A CIP catalogue record for this book is available from the British Library. Microsoft Press books are available through booksellers and distributors worldwide. For further infor mation about international editions, contact your local Microsoft Corporation office or contact Microsoft Press International directly at fax (425) 936-7329. Visit our Web site at www.microsoft.com/mspress. Send comments to [email protected]. Microsoft, Microsoft Press, Excel, IntelliSense, Internet Explorer, Jscript, MS, MSDN, SQL Server, Visual Basic, Visual C#, Visual C++, Visual Studio, Win32, Windows, and Windows Vista are either registered trademarks or trademarks of the Microsoft group of companies. Other product and company names mentioned herein may be the trademarks of their respective owners. The example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious. No association with any real company, organization, product, domain name, e-mail address, logo, person, place, or event is intended or should be inferred. This book expresses the author’s views and opinions. The information contained in this book is provided without any express, statutory, or implied warranties. Neither the authors, Microsoft Corporation, nor its resellers, or distributors will be held liable for any damages caused or alleged to be caused either directly or indirectly by this book. Acquisitions Editor: Ben Ryan Developmental Editor: Devon Musgrave Project Editor: Rosemary Caperton Editorial Production: Waypoint Press, www.waypointpress.com Technical Reviewer: Per Blomqvist; Technical Review services provided by Content Master, a member of CM Group, Ltd. Cover: Tom Draper Design Body Part No. X16-81630 Table of Contents Acknowledgments . xvii Introduction . .xix Part I . Introducing .Microsoft .Visual .C# .and .Microsoft . Visual .Studio .2010 . 1 Welcome to C# . 3 Beginning Programming with the Visual Studio 2010 Environment . 3 Writing Your First Program . 8 Using Namespaces . 14 Creating a Graphical Application . 17 Chapter 1 Quick Reference . 26 . 2 Working with Variables, Operators, and Expressions . 27 Understanding Statements . 27 Using Identifiers . 28 Identifying Keywords . 28 Using Variables . 29 Naming Variables . 30 Declaring Variables . 30 Working with Primitive Data Types . 31 Unassigned Local Variables . 32 Displaying Primitive Data Type Values . 32 Using Arithmetic Operators . 36 Operators and Types . 37 Examining Arithmetic Operators . 38 Controlling Precedence . 41 Using Associativity to Evaluate Expressions . 42 Associativity and the Assignment Operator . 42 What do you think of this book? We want to hear from you! Microsoft is interested in hearing your feedback so we can continually improve our books and learning resources for you. To participate in a brief online survey, please visit: www.microsoft.com/learning/booksurvey/ . v vi Table of Contents Incrementing and Decrementing Variables . 43 Prefix and Postfix . 44 Declaring Implicitly Typed Local Variables . 45 Chapter 2 Quick Reference . 46 . 3 Writing Methods and Applying Scope . 47 Creating Methods . 47 Declaring a Method . 48 Returning Data from a Method . 49 Calling Methods . 51 Specifying the Method Call Syntax . 51 Applying Scope . 53 Defining Local Scope . 54 Defining Class Scope . 54 Overloading Methods . 55 Writing Methods . 56 Using Optional Parameters and Named Arguments . 64 Defining Optional Parameters . 65 Passing Named Arguments . 66 Resolving Ambiguities with Optional Parameters and Named Arguments . 66 Chapter 3 Quick Reference . 72 . 4 Using Decision Statements . 73 Declaring Boolean Variables . 73 Using Boolean Operators . 74 Understanding Equality and Relational Operators . 74 Understanding Conditional Logical Operators . 75 Short-Circuiting . 76 Summarizing Operator Precedence and Associativity . 76 Using if Statements to Make Decisions . 77 Understanding if Statement Syntax . 77 Using Blocks to Group Statements . 78 Cascading if Statements . 79 Using switch Statements . 84 Understanding switch Statement Syntax . 85 Following the switch Statement Rules . 86 Chapter 4 Quick Reference . 89 Table of Contents vii . 5 Using Compound Assignment and Iteration Statements . 91 Using Compound Assignment Operators . 91 Writing while Statements . 92 Writing for Statements . 97 Understanding for Statement Scope . 98 Writing do Statements . 99 Chapter 5 Quick Reference . 108 . 6 Managing Errors and Exceptions . 109 Coping with Errors . 109 Trying Code and Catching Exceptions . 110 Unhandled Exceptions . 111 Using Multiple catch Handlers . 112 Catching Multiple Exceptions . 113 Using Checked and Unchecked Integer Arithmetic . 118 Writing Checked Statements . 118 Writing Checked Expressions . 119 Throwing Exceptions . 121 Using a finally Block . 124 Chapter 6 Quick Reference . 126 Part II
Recommended publications
  • Portable Microsoft Visual Foxpro 9 SP2 Serial Key Keygen
    Portable Microsoft Visual FoxPro 9 SP2 Serial Key Keygen 1 / 4 Portable Microsoft Visual FoxPro 9 SP2 Serial Key Keygen 2 / 4 3 / 4 License · Commercial proprietary software. Website, msdn.microsoft.com/vfoxpro. Visual FoxPro is a discontinued Microsoft data-centric procedural programming language that ... As of March 2008, all xBase components of the VFP 9 SP2 (including Sedna) were ... CLR Profiler · ILAsm · Native Image Generator · XAMLPad .... Download Microsoft Visual FoxPro 9 SP1 Portable Edition . Download ... Visual FoxPro 9 Serial Number Keygen for All Versions. 9. 0. SP2.. Download Full Cracked Programs, license key, serial key, keygen, activator, ... Free download the full version of the Microsoft Visual FoxPro 9 Windows and Mac. ... 9 Portable, Microsoft Visual FoxPro 9 serial number, Microsoft Visual FoxPro 9 .... Download Microsoft Visual FoxPro 9 SP 2 Full. Here I provide two ... Portable and I include file . 2015 Free ... Visual FoxPro 9.0 SP2 provides the latest updates to Visual FoxPro. ... autodesk autocad 2010 keygens only x force 32bits rh.. ... cs5 extended serial number keygen photo dvd slideshow professional 8.23 serial ... canadian foreign policy adobe acrobat 9 standard updates microsoft money ... microsoft visual studio express 2012 for web publish website microsoft office ... illustrator cs5 portable indowebsteradobe illustrator cs6 portable indowebster .... Download Microsoft Visual FoxPro 9 SP 2 Full Intaller maupun Portable. ... serial number Visual FoxPro 9 SP2 Portable, keygen Visual FoxPro 9 SP2 Portable, .... Microsoft Visual FoxPro 9.0 Service Pack 2.0. Important! Selecting a language below will dynamically change the complete page content to that .... Microsoft Visual FoxPro all versions serial number and keygen, Microsoft Visual FoxPro serial number, Microsoft Visual FoxPro keygen, Microsoft Visual FoxPro crack, Microsoft Visual FoxPro activation key, ..
    [Show full text]
  • 1 Proyecto De Fin De Carrera Entorno De Monitorización De Sistemas
    Proyecto de fin de carrera Entorno de monitorización de sistemas informáticos embarcados mediante pantallas táctiles. Versión: 1.0 Creación: Diciembre 2010 Autor: Vicente García Adánez Tutor: Juan Llorens Morillo 1 Entorno de monitorización de sistemas informáticos embarcados mediante pantallas táctiles García Adánez, V. Esta página ha sido dejada en blanco intencionadamente. 2 Entorno de monitorización de sistemas informáticos embarcados mediante pantallas táctiles García Adánez, V. RESUMEN: Este proyecto ha sido realizado para ser presentado como proyecto de fin de carrera en colaboración con la empresa finlandesa Mobile Net Control (MNC de ahora en adelante) con sede en Mariehamn, capital de las islas Åland, provincia de Finlandia, gracias a la obtención de una beca Erasmus para el año 2010. MNC en una de sus áreas provee a sus clientes de ordenadores para sus barcos creando un sistema de comunicación en ellos. Además de mantenerlos funcionando correctamente se encarga de que la información y configuración en los equipos no se pierda y para ello realiza a través de internet copias de seguridad de sus archivos. Como utilidad para sus barcos ha creído conveniente desarrollar una aplicación software fácil e intuitiva desde la que se pueda monitorizar el estado de los ordenadores que pueda tener su barco. Ésta se encargará de comprobar que funcionan correctamente y en caso de que no lo hagan ayudará a solucionarlo. El objetivo de este proyecto es por tanto la realización de una aplicación para pantalla táctil que permita monitorizar el estado de diferentes componentes en un barco desde el lugar donde esté instalada. Su uso está destinado a la persona responsable de este cometido, que bien puede ser un capitán como cualquier otra persona del barco no relacionada con la informática.
    [Show full text]
  • Yohan J. Rodríguez Viveros
    Yohan J. Rodríguez Viveros Living in: Hermosillo, Sonora. México Email: [email protected] Blog: https://www.hasdid.com Skype: yohan.jasdid Profile 15 Years experience in software development. Use of multiple technologies and tools. Passionate about code and science. Book/Article writer and researcher. Always looking for interesting problems to solve. Full-Stack coder. Always learning technologies to contribute code in desktop/web applications, back-end, front-end, web/local/cloud services, Api’s and scientific computing Employment History Developer IV Tiempo Development Sep 2015 - Present | Hermosillo, Sonora Developer of a security company product. Development and maintenance of the system features, releases, policy deployment, support to customers, documentation and platform infrastructure. Main responsibil- ities include: Development and maintenance of the system features like Database support. Consists in the ability to scan database products of multiple types like Oracle, MS SQL Server, MySQL and DB2 to execute stan- dard security policies against those databases to discover and re-mediate security issues. Platforms support. Consists in the ability to scan multiple operating system like multiple versions of Windows, multiple types of Linux distributions, multiple types of Unix, OSx and embedded OS devices to execute standard policies and discover security issues. Standard security policies includes DISA, CIS and PCI security standards. Devices support. Consists in the ability to scan multiple types of industrial control systems
    [Show full text]
  • Appendixes APPENDIX A
    PART 8 Appendixes APPENDIX A COM and .NET Interoperability The goal of this book was to provide you with a solid foundation in the C# language and the core services provided by the .NET platform. I suspect that when you contrast the object model provided by .NET to that of Microsoft’s previous component architecture (COM), you’ll no doubt be con- vinced that these are two entirely unique systems. Regardless of the fact that COM is now considered to be a legacy framework, you may have existing COM-based systems that you would like to inte- grate into your new .NET applications. Thankfully, the .NET platform provides various types, tools, and namespaces that make the process of COM and .NET interoperability quite straightforward. This appendix begins by examin- ing the process of .NET to COM interoperability and the related Runtime Callable Wrapper (RCW). The latter part of this appendix examines the opposite situation: a COM type communicating with a .NET type using a COM Callable Wrapper (CCW). ■Note A full examination of the .NET interoperability layer would require a book unto itself. If you require more details than presented in this appendix, check out my book COM and .NET Interoperability (Apress, 2002). The Scope of .NET Interoperability Recall that when you build assemblies using a .NET-aware compiler, you are creating managed code that can be hosted by the common language runtime (CLR). Managed code offers a number of ben- efits such as automatic memory management, a unified type system (the CTS), self-describing assemblies, and so forth. As you have also seen, .NET assemblies have a particular internal compo- sition.
    [Show full text]
  • Special Characters Numbers
    Index ■Special Characters AddServiceEndpoint( ) member, ServiceHost type, #define, preprocessor directive, 317–319 1032 #elif, preprocessor directive, 317–318 ADO.NET #else, preprocessor directive, 317–318 additional namespaces, 763–764 #endif, preprocessor directive, 317–318 vs. ADO classic, 759–760 #endregion, preprocessor directive, 317 application configuration files, 769–770 #if, preprocessor directive, 317–318 asynchronous data access, 792–793 #region, preprocessor directive, 317 autogenerated data components, 824–825 #undef, preprocessor directive, 317–319 autogenerating SQL commands, 816–817 % modulo operator, C#, 1097 autoincrementing, 797 & operator, pointer types, 312–313 binding DataTables to user interfaces, 804, 806 * operator, pointer types, 312–313 Command object, 781–782 ?? operator, 133 connected layer, 778 += operator, 610 connected vs. disconnected layer, 760 <%@Page%> directive attribute, ASP.NET, 846 connecting to database, Visual Studio 2005, 776 <%Import%> directive, ASP.NET, 846–847 connection objects, 779–780 => token, 1098 ConnectionStringBuilder object, 780–781 ? suffix, nullable types, 131 connectionStrings element, application configuration, 774–775 ■Numbers data access libraries, 1130 data adapter objects, 811–812 3D graphics graphical service, WPF, 1012 data providers, 760, 762 3D rendered animation, 970 data wizards, 822–825 100% code approach, 1048 DataColumn objects, 796, 798 ■ DataRelation objects, 817–820 A DataRow objects, 798–799, 801 A# programming language, 8 DataRow.RowState property, 799–800 Abort(
    [Show full text]
  • Silverlight for Windows Embedded Developer's Guide 4
    Silverlight for Windows Embedded Developer’s Guide Published: January 2012 Applies to: Windows Embedded Compact 7 Abstract This paper is a comprehensive introduction to developing Silverlight for Windows Embedded applications. It describes the programming model and design workflow in Silverlight for Windows Embedded. It covers the following concepts: How to provide safe implicit-type conversion of generic objects How to work with visual hosts and visual trees How to handle events in Silverlight for Windows Embedded This paper includes tutorials that show you how to create applications, create custom user controls, and implement hardware acceleration for graphics. These tutorials require Visual Studio 2008, Windows Embedded Compact 7, an OS image and a development device or virtual CEPC. To create XAML source files for your UI design, you also need Microsoft Expression Blend 3 or another XAML editor. © 2012 Microsoft. All rights reserved. Contents Introduction .......................................................................................................................................... 4 Overview .............................................................................................................................................. 4 Features and Benefits of Silverlight for Windows Embedded Development Framework ...................... 5 Supported Silverlight UI Features ...................................................................................................... 6 Programming Model in Silverlight for Windows Embedded
    [Show full text]
  • Reiter István
    Reiter István C# 2009, 0.91 verzió 2 Tartalomjegyzék 1. Bevezet ő…………………………………………………………………………….......8 1.1. A jegyzet jelölései…………………………………………………………………8 1.2. Jogi feltételek………………………………………………………………………8 2. Microsoft .NET Framework…………………………………………………………...9 2.1. A .NET platform…………………………………………………………………….9 2.1.1. MSIL/CIL……………………………………………………………………...9 2.1.2. Fordítás/futtatás…………………………………………………………….9 2.1.3. BCL. …………………………………………………………………………10 2.2. A C# programozási nyelv……………………………………………………….10 2.3. Alternatív megoldások…………………………………………………………10 2.3.1. SSCLI………………………………………………………………………10 2.3.2. Mono…………………………………………………………………………10 2.3.3. DotGNU……………………………………………………………………..10 3. Fejleszt ői környezetek………………………………………………………………..12 3.1. Microsoft Visual Studio…………………………………………………………12 3.2. SharpDevelop…………………………………………………………………….13 3.3. MonoDevelop……………………………………………………………………..14 4. “Hello C#!”……………………………………………………………………………..16 4.1. A C# szintaktikája………………………………………………………………..17 4.1.1. Kulcsszavak……………………………………………………………….17 4.1.2. Megjegyzések……………………………………………………………..18 4.2. Névterek…………………………………………………………………………...18 5. Változók………………………………………………………………………………...20 5.1. Típusok…………………………………………………………………………….20 5.2. Lokális változók………………………………………………………………….21 5.3. Referencia- és értéktípusok……………………………………………………21 5.4. Boxing és Unboxing…………………………………………………………….22 5.5. Konstansok……………………………………………………………………….23 5.6. A felsorolt típus…………………………………………………………………..23 5.7. Null típusok………………………………………………………………………..24 6. Operátorok……………………………………………………………………………..25 6.1.
    [Show full text]
  • Microsoft® Visual C#® 2010 Krok Po Kroku © 2010 APN PROMISE Sp
    Microsoft ® Visual C# ® 2010 Krok po kroku John Sharp przekład: Maria Chaniewska, Krzysztof Szkudlarek ##7#52#aSUZPUk1BVC1WaXJ0dWFsbw== Microsoft® Visual C#® 2010 Krok po kroku © 2010 APN PROMISE Sp. z o. o. Authorized translation of English edition of Microsoft® Visual C#® 2010 Step by Step © 2010 John Sharp This translation is published and sold by permission of O’Reilly Media, Inc., which owns or controls of all rights to publish and sell the same. APN PROMISE Sp. z o. o., biuro: ul. Kryniczna 2, 03-934 Warszawa tel. +48 22 35 51 642, fax +48 22 35 51 699 e-mail: [email protected] Wszystkie prawa zastrzeżone. Żadna część niniejszej książki nie może być powielana ani rozpowszechniana w jakiejkolwiek formie i w jakikolwiek sposób (elektroniczny, mechaniczny), włącznie z fotokopiowaniem, nagrywaniem na taśmy lub przy użyciu innych systemów bez pisemnej zgody wydawcy. Microsoft, Microsoft Press, Access, ActiveX, Arc, Azure, DataTips, Excel, Expression, Halo, IntelliSense, Internet Explorer, MS, MSDN, MS-DOS, PowerPoint, SharePoint, Silverlight, SQL Server, Visual Basic, Visual C#, Visual C++, Visual InterDev, Visual Studio, Windows, Windows Azure, Windows Server, Windows Vista oraz Zoo Tycoon są zarejestrowanymi znakami towarowymi Micros oft Corporation. Wszystkie inne nazwy handlowe i towarowe występujące w niniejszej publikacji mogą być znakami towarowymi zastrzeżonymi lub nazwami zastrzeżonymi odpowiednich firm odnośnych właścicieli. Przykłady firm, produktów, osób i wydarzeń opisane w niniejszej książce są fikcyjne i nie odnoszą się do żadnych konkretnych firm, produktów, osób i wydarzeń. Ewentualne podobieństwo do jakiejkolwiek rzeczywistej firmy, organizacji, produktu, nazwy domeny, adresu poczty elektronicznej, logo, osoby, miejsca lub zdarzenia jest przypadkowe i niezamierzone. APN PROMISE Sp.
    [Show full text]
  • Par La Pratique Thomas Lebrun Par Lapratique WPF Pagetitre WPF 20/11/08 11:07 Page 2
    12422_WPF 24/11/08 13:54 Page 1 WPF par la pratique T. Lebrun WPF, la solution pour concevoir des applications Windows riches T. Lebrun WPF (Windows Presentation Foundation) est la nouvelle technologie de Microsoft qui permet de développer des inter- Leader technique WPF faces graphiques offrant une grande interactivité, notamment grâce à des animations, des effets visuels et l’utilisation dans le pôle Rich de médias. Système graphique de l’environnement Windows, il comprend du graphisme 2D et 3D, du dessin vecto- Internet & Desktop riel et bitmap, ainsi que de l’audio et de la vidéo. Il peut être utilisé pour développer des interfaces graphiques de Applications de la société logiciels (traitement de texte, jeux, etc.), mais il existe également une version allégée pour le Web nommée Silverlight. Winwise, Thomas Lebrun par la pratique est également Tout ce que vous devez savoir sur WPF ! consultant/formateur Cet ouvrage plongera le lecteur au cœur même de la technologie WPF, en détaillant les spécificités de son langage sur les technologies WPF associé, XAML, mais également en couvrant des aspects plus complexes comme la définition des Dependency et Silverlight. Pour Properties, la gestion des événements routés (qui diffèrent des événements .NET classiques) ou l’implémentation du le remercier de système de commandes. À vocation très pratique, il aidera les développeurs .NET à concevoir des animations et des ses contributions transformations pour enrichir leurs applications Windows ou Internet (via Sliverlight). Illustré par de nombreux communautaires, Microsoft exemples de code, il est complété par une étude de cas portant sur un gestionnaire de contacts personnalisés, qui lui a accordé le titre constitue le fil conducteur du livre.
    [Show full text]
  • Diplomov´A Pr´Ace
    Cesk· e¶ vysoke¶ ucen· ¶³ technicke¶ v Praze Fakulta elektrotechnicka¶ DIPLOMOVA¶ PRACE¶ Rozhran¶³n¶astroje pro tvorbu rozvrhu Praha, 2009 Autor: Ond·rejKunc Prohl¶a·sen¶³ Prohla·suji,·zejsem svou diplomovou pr¶acivypracoval samostatn·ea pou·ziljsem pouze podklady (literaturu, projekty, SW atd.) uveden¶ev p·rilo·zen¶emseznamu. V Praze dne podpis i Pod·ekov¶an¶³ D·ekujisv¶erodin·eza podporu vynakl¶adanoupa celou dobu m¶ehostudia. P·redev·s¶³m v·sak,d·ekujivedouc¶³mu pr¶acepanu Ing. Liboru Waszniowskimu, Ph.D. za odborn¶eveden¶³diplomov¶epr¶ace,vst·r¶³cnostp·rizodpov¶³d¶an¶³dotazºu. ii Abstrakt Ukolem¶ pr¶aceje na pilotn¶³mprojektu ov·e·ritpou·zitelnosttechnologie Silverlight pro tvorbu gra¯ck¶ehou·zivatelsk¶ehorozhran¶³(GUI) optimaliza·cnihon¶astroje. Jako pilotn¶³ apliakace bylo zvoleno GUI n¶astroje pro tvorbu rozvrhu fakulty, kter¶ev sob·ekombinuje po·zadavky na komfortni ovladani bl¶³zke desktopov¶eaplikaci a z¶arove·npot·rebusd¶³len¶³ dat, kterou naopak nabiz¶³webov¶aaplikace. Uvodn¶³kapitoly¶ popisuj¶³z¶akladn¶³pojmy .NETu vyu·z¶³van¶ev Silverlight technologii, stejn·ejako s instalaci a pou·z¶³v¶an¶³Silverlightu. D¶aleje popisov¶anvyvinut¶ySilverlight program, ur·cen¶ypro tvorbu rozvrhu ·skoly. V z¶av·erujsou zhodnoceny osobn¶³zku·senosti a post·rehy nabyt¶ep·ritvorb·eprogramu. iii Abstract The aim of this thesis is to get familiar with new Microsoft technology called Silverlight and create an optimalization tool with it. As a starting application was selected GUI for declaring school's timetable, which combines requires for user friendly interface similar to desktop application and at the same time need of sharing data, which o®ers web application.
    [Show full text]
  • Sns College of Technology
    Reg.No SNS COLLEGE OF TECHNOLOGY (Autonomous) MCA- Internal Assessment –III (October 2019) A Academic Year 2019-2020(ODD) / Fifth Semester 16CA801 – C# and .NET Programming Time: 11/2 Hours Maximum Marks: 50 Answer All Questions PART - A (3 * 2 = 6 Marks) 1. Define the states in ASP.Net. CO4 (L4) View State. Control State. Session State. Application State. 2. Data sets are Objects – Justify. CO4 (L6) A Dataset object represents a group of fields (key / value pairs) used to autofill parts of a screen. 3. List the Protocols used in web services. CO5 (L3) 1. WSDL 2. SOAP 3. UDDP PART - B (2*4 = 8 Marks) 4. Describe Exception Handler in ASP.Net. CO4 (L4) try { int a = 0; int b = 9 / a; }catch (Exception e) { Trace.Warn("UserAction", "processing 9/a", e); } 5. Specify the components used in WWF with diagram CO5 (L3) Every running workflow instance is created and maintained by an in-process run- time engine that the host process interacts with through one of the following: A WorkflowInvoker, which invokes the workflow like a method. A WorkflowApplication for explicit control over the execution of a single workflow instance. A WorkflowServiceHost for message-based interactions in multi-instance scenarios. Each of these classes wraps the core activity runtime represented as a ActivityInstance responsible for activity execution. There can be several ActivityInstance objects within an application domain running concurrently. Each of the preceding three host interaction objects is created from a tree of activities referred to as a workflow program. Using these types or a custom host that wraps ActivityInstance, workflows can be executed inside any Windows process including console applications, forms-based applications, Windows Services, ASP.NET Web sites, and Windows Communication Foundation (WCF) services.
    [Show full text]
  • WPF in Action with Visual Studio 2008
    www.it-ebooks.info WPF in Action with Visual Studio 2008 www.it-ebooks.info www.it-ebooks.info WPF in Action with Visual Studio 2008 COVERS VISUAL STUDIO 2008 SP1 AND .NET 3.5 SP1 ARLEN FELDMAN MAXX DAYMON MANNING Greenwich (74° w. long.) www.it-ebooks.info For online information and ordering of this and other Manning books, please visit www.manning.com. The publisher offers discounts on this book when ordered in quantity. For more information, please contact: Special Sales Department Manning Publications Co. Sound View Court 3B Fax: (609) 877-8256 Greenwich, CT 06830 Email: [email protected] ©2009 by Manning Publications Co. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps. Recognizing the importance of preserving what has been written, it is Manning’s policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end. Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15% recycled and processed elemental chlorine-free Development Editor: Jeff Bleiel Manning
    [Show full text]