Abstract: This application note describes how to build, debug, and run applications on the on-board MAXQ622microcontroller to InterfaCE with the DS8005 dual smart card InterfaCE. This is demonstrated in both IAREmbedded Workbench and the Rowley CrossWorks IDE, using sample code provided with the kit.
標(biāo)簽: 8005 DS 評(píng)估套件
上傳時(shí)間: 2013-10-29
上傳用戶(hù):ddddddd
《C#入門(mén)經(jīng)典(第4版)》通過(guò)C#可以很容易地學(xué)習(xí).NET Framework 3.5的強(qiáng)大功能,所以C#是開(kāi)始您編程生涯的絕佳方式。《C#入門(mén)經(jīng)典(第4版)》全面闡述了C#編程的所有方面,包括C#語(yǔ)言本身、Windows編程、Web編程及數(shù)據(jù)源的使用等內(nèi)容。學(xué)習(xí)了新的編程技巧后,《C#入門(mén)經(jīng)典(第4版)》介紹了如何高效地部署應(yīng)用程序和服務(wù),論述了許多高級(jí)技術(shù),如圖形化編程。另外,還探討了如何使用Visual C# Express 2008、Visual Web Developer Express 2008和Visual Studio 2008的功能。所有這些內(nèi)容都已更新,以反映.NET Framework 3.5和Visual Studio 2008的變化。各章的樣例代碼和示例還可以用于創(chuàng)建強(qiáng)大且安全的應(yīng)用程序。 c#入門(mén)經(jīng)典第4版目錄 第Ⅰ部分 C# 語(yǔ) 言 第1章 C#簡(jiǎn)介 3 1.1 什么是.NET Framework 3 1.1.1 NET Framework的內(nèi)容 4 1.1.2 用.NET Framework編寫(xiě)應(yīng)用程序 4 1.2 什么是C# 7 1.2.1 用C#能編寫(xiě)什么樣的應(yīng)用程序 7 1.2.2 本書(shū)中的C# 8 1.3 Visual Studio 2008 8 1.3.1 Visual Studio 2008 Express 產(chǎn)品 9 1.3.2 解決方案 9 1.4 小結(jié) 9 第2章 編寫(xiě)C#程序 10 2.1 開(kāi)發(fā)環(huán)境 10 2.1.1 Visual Studio 2008 11 2.1.2 Visual C# 2008 ExpressEdition 13 2.2 控制臺(tái)應(yīng)用程序 13 2.2.1 Solution Explorer 16 2.2.2 Properties窗口 17 2.2.3 Error List窗口 17 2.3 Windows Forms應(yīng)用程序 18 2.4 小結(jié) 22 第3章 變量和表達(dá)式 23 3.1 C#的基本語(yǔ)法 23 3.2 C#控制臺(tái)應(yīng)用程序的基本結(jié)構(gòu) 25 3.3 變量 27 3.3.1 簡(jiǎn)單類(lèi)型 27 3.3.2 變量的命名 31 3.3.3 字面值 32 3.3.4 變量的聲明和賦值 33 3.4 表達(dá)式 34 3.4.1 數(shù)學(xué)運(yùn)算符 34 3.4.2 賦值運(yùn)算符 38 3.4.3 運(yùn)算符的優(yōu)先級(jí) 39 3.4.4 名稱(chēng)空間 39 3.5 小結(jié) 42 3.6 練習(xí) 43 第4章 流程控制 44 4.1 布爾邏輯 44 4.1.1 位運(yùn)算符 46 4.1.2 布爾賦值運(yùn)算符 50 4.1.3 運(yùn)算符的優(yōu)先級(jí)更新 51 4.2 goto語(yǔ)句 52 4.3 分支 53 4.3.1 三元運(yùn)算符 53 4.3.2 if語(yǔ)句 54 4.3.3 switch語(yǔ)句 57 4.4 循環(huán) 60 4.4.1 do循環(huán) 61 4.4.2 while循環(huán) 63 4.4.3 for循環(huán) 65 4.4.4 循環(huán)的中斷 69 4.4.5 無(wú)限循環(huán) 70 4.5 小結(jié) 70 4.6 練習(xí) 71 第5章 變量的更多內(nèi)容 72 5.1 類(lèi)型轉(zhuǎn)換 72 5.1.1 隱式轉(zhuǎn)換 72 5.1.2 顯式轉(zhuǎn)換 74 5.1.3 使用Convert命令進(jìn)行 顯式轉(zhuǎn)換 76 5.2 復(fù)雜的變量類(lèi)型 79 5.2.1 枚舉 79 5.2.2 結(jié)構(gòu) 83 5.2.3 數(shù)組 86 5.3 字符串的處理 91 5.4 小結(jié) 95 5.5 練習(xí) 96 第6章 函數(shù) 97 6.1 定義和使用函數(shù) 98 6.1.1 返回值 99 6.1.2 參數(shù) 101 6.2 變量的作用域 107 6.2.1 其他結(jié)構(gòu)中變量的作用域 110 6.2.2 參數(shù)和返回值與全局?jǐn)?shù)據(jù) 111 6.3 Main()函數(shù) 113 6.4 結(jié)構(gòu)函數(shù) 114 6.5 函數(shù)的重載 115 6.6 委托 117 6.7 小結(jié) 119 6.8 練習(xí) 120 第7章 調(diào)試和錯(cuò)誤處理 121 7.1 VS和VCE中的調(diào)試 121 7.1.1 非中斷(正常)模式下的調(diào)試 122 7.1.2 中斷模式下的調(diào)試 131 7.2 錯(cuò)誤處理 139 7.2.1 try...catch...finally 140 7.2.2 列出和配置異常 144 7.2.3 異常處理的注意事項(xiàng) 145 7.3 小結(jié) 146 7.4 練習(xí) 146 第8章 面向?qū)ο缶幊毯?jiǎn)介 147 8.1 什么是面向?qū)ο缶幊?147 8.1.1 什么是對(duì)象 148 8.1.2 所有的東西都是對(duì)象 151 8.1.3 對(duì)象的生命周期 151 8.1.4 靜態(tài)和實(shí)例類(lèi)成員 152 8.2 OOP技術(shù) 153 8.2.1 接口 153 8.2.2 繼承 155 8.2.3 多態(tài)性 156 8.2.4 對(duì)象之間的關(guān)系 157 8.2.5 運(yùn)算符重載 159 8.2.6 事件 159 8.2.7 引用類(lèi)型和值類(lèi)型 160 8.3 Windows應(yīng)用程序中的OOP 160 8.4 小結(jié) 162 8.5 練習(xí) 163 第9章 定義類(lèi) 164 9.1 C#中的類(lèi)定義 164 9.2 System.Object 169 9.3 構(gòu)造函數(shù)和析構(gòu)函數(shù) 170 9.4 VS和VCE中的OOP工具 174 9.4.1 Class View窗口 174 9.4.2 對(duì)象瀏覽器 176 9.4.3 添加類(lèi) 177 9.4.4 類(lèi)圖 177 9.5 類(lèi)庫(kù)項(xiàng)目 179 9.6 接口和抽象類(lèi) 182 9.7 結(jié)構(gòu)類(lèi)型 184 9.8 小結(jié) 186 9.9 練習(xí) 186 第10章 定義類(lèi)成員 187 10.1 成員定義 187 10.1.1 定義字段 187 10.1.2 定義方法 188 10.1.3 定義屬性 189 10.1.4 在類(lèi)圖中添加成員 194 10.1.5 重制成員 196 10.1.6 自動(dòng)屬性 197 10.2 類(lèi)成員的其他議題 197 10.2.1 隱藏基類(lèi)方法 198 10.2.2 調(diào)用重寫(xiě)或隱藏的基類(lèi)方法 199 10.2.3 嵌套的類(lèi)型定義 200 10.3 接口的實(shí)現(xiàn) 201 10.4 部分類(lèi)定義 204 10.5 部分方法定義 206 10.6 示例應(yīng)用程序 207 10.6.1 規(guī)劃應(yīng)用程序 207 10.6.2 編寫(xiě)類(lèi)庫(kù) 208 10.6.3 類(lèi)庫(kù)的客戶(hù)應(yīng)用程序 214 10.7 小結(jié) 215 10.8 練習(xí) 216 第11章 集合、比較和轉(zhuǎn)換 217 11.1 集合 217 11.1.1 使用集合 218 11.1.2 定義集合 224 11.1.3 索引符 225 11.1.4 給CardLib添加Cards集合 227 11.1.5 關(guān)鍵字值集合和IDictionary 229 11.1.6 迭代器 231 11.1.7 深度復(fù)制 236 11.1.8 給CardLib添加深度復(fù)制 238 11.2 比較 239 11.2.1 類(lèi)型比較 240 11.2.2 值比較 244 11.3 轉(zhuǎn)換 259 11.3.1 重載轉(zhuǎn)換運(yùn)算符 259 11.3.2 as運(yùn)算符 260 11.4 小結(jié) 261 11.5 練習(xí) 262 第12章 泛型 263 12.1 泛型的概念 263 12.2 使用泛型 264 12.2.1 可空類(lèi)型 264 12.2.2 System.Collections.Generic 名稱(chēng)空間 271 12.3 定義泛型 279 12.3.1 定義泛型類(lèi) 280 12.3.2 定義泛型接口 291 12.3.3 定義泛型方法 291 12.3.4 定義泛型委托 293 12.4 小結(jié) 293 12.5 練習(xí) 293 第13章 其他OOP技術(shù) 295 13.1 ::運(yùn)算符和全局名稱(chēng)空間 13.2 定制異常 296 13.2.1 異常基類(lèi) 297 13.2.2 給CardLib添加定制異常 297 13.3 事件 298 13.3.1 什么是事件 298 13.3.2 使用事件 300 13.3.3 定義事件 302 13.4 擴(kuò)展和使用CardLib 309 13.5 小結(jié) 317 13.6 練習(xí) 317 第14章 C# 3.0語(yǔ)言的改進(jìn) 318 14.1 初始化器 318 14.1.1 對(duì)象初始化器 319 14.1.2 集合初始化器 320 14.2 類(lèi)型推斷 323 14.3 匿名類(lèi)型 325 14.4 擴(kuò)展方法 328 14.5 ?表達(dá)式 333 14.5.1 復(fù)習(xí)匿名方法 333 14.5.2 把?表達(dá)式用于匿名方法 334 14.5.3 ?表達(dá)式的參數(shù) 337 14.5.4 ?表達(dá)式的語(yǔ)句體 337 14.5.5 ?表達(dá)式用作委托和表達(dá)式樹(shù) 338 14.5.6 ?表達(dá)式和集合 339 14.6 小結(jié) 342 14.7 練習(xí) 342 第Ⅱ部分 Windows 編 程 第15章 Windows編程基礎(chǔ) 347 15.1 控件 347 15.1.1 屬性 348 15.1.2 控件的定位、停靠和對(duì)齊 349 15.1.3 事件 350 15.2 Button控件 352 15.2.1 Button控件的屬性 352 15.2.2 Button控件的事件 353 15.3 Label和LinkLabel控件 354 15.4 TextBox控件 355 15.4.1 TextBox控件的屬性 355 15.4.2 TextBox控件的事件 356 15.5 RadioButton和CheckBox控件 363 15.5.1 RadioButton控件的屬性 364 15.5.2 RadioButton控件的事件 364 15.5.3 CheckBox控件的屬性 364 15.5.4 CheckBox控件的事件 364 15.5.5 GroupBox控件 365 15.6 RichTextBox控件 368 15.6.1 RichTextBox控件的屬性 368 15.6.2 RichTextBox控件的事件 369 15.7 ListBox和CheckedListBox控件 374 15.7.1 ListBox控件的屬性 375 15.7.2 ListBox控件的方法 376 15.7.3 ListBox控件的事件 376 15.8 ListView控件 378 15.8.1 ListView控件的屬性 378 15.8.2 ListView控件的方法 380 15.8.3 ListView控件的事件 381 15.8.4 ListViewItem 381 15.8.5 ColumnHeader 381 15.8.6 ImageList控件 381 15.9 TabControl控件 388 15.9.1 TabControl控件的屬性 389 15.9.2 使用TabControl控件 389 15.10 小結(jié) 392 15.11 練習(xí) 392 第16章 Windows Forms的高級(jí)功能 393 16.1 菜單和工具欄 393 16.1.1 兩個(gè)實(shí)質(zhì)一樣的控件 393 16.1.2 使用MenuStrip控件 394 16.1.3 手工創(chuàng)建菜單 394 16.1.4 ToolStripMenuItem控件的其他屬性 397 16.1.5 給菜單添加功能 397 16.2 工具欄 399 16.2.1 ToolStrip控件的屬性 399 16.2.2 ToolStrip的項(xiàng) 400 16.2.3 StatusStrip控件 405 16.2.4 StatusStripStatusLabel的屬性 405 16.3 SDI和MDI應(yīng)用程序 407 16.4 創(chuàng)建控件 415 16.4.1 LabelTextbox控件 417 16.4.2 調(diào)試用戶(hù)控件 420 16.4.3 擴(kuò)展LabelTextbox控件 421 16.5 小結(jié) 424 16.6 練習(xí) 424 第17章 使用通用對(duì)話(huà)框 425 17.1 通用對(duì)話(huà)框 425 17.2 如何使用對(duì)話(huà)框 426 17.3 文件對(duì)話(huà)框 427 17.3.1 OpenFileDialog 427 17.3.2 SaveFileDialog 438 17.4 打印 442 17.4.1 打印結(jié)構(gòu) 442 17.4.2 打印多個(gè)頁(yè)面 447 17.4.3 PageSetupDialog 449 17.4.4 PrintDialog 451 17.5 打印預(yù)覽 455 17.5.1 PrintPreviewDialog 455 17.5.2 PrintPreviewControl 456 17.6 FontDialog和ColorDialog 457 17.6.1 FontDialog 457 17.6.2 ColorDialog 459 17.6.3 FolderBrowserDialog 460 17.7 小結(jié) 461 17.8 練習(xí) 461 第18章 部署Windows應(yīng)用程序 463 18.1 部署概述 463 18.2 ClickOnce部署 464 18.3 Visual Studio安裝和部署項(xiàng)目類(lèi)型 473 18.4 Microsoft Windows安裝程序結(jié)構(gòu) 474 18.4.1 Windows Installer術(shù)語(yǔ) 474 18.4.2 Windows Installer的優(yōu)點(diǎn) 476 18.5 為SimpleEditor創(chuàng)建安裝軟件包 476 18.5.1 規(guī)劃安裝內(nèi)容 476 18.5.2 創(chuàng)建項(xiàng)目 477 18.5.3 項(xiàng)目屬性 478 18.5.4 安裝編輯器 480 18.5.5 File System編輯器 481 18.5.6 File Types編輯器 483 18.5.7 Launch Condition編輯器 485 18.5.8 User InterfaCE編輯器 485 18.6 構(gòu)建項(xiàng)目 488 18.7 安裝 489 18.7.1 Welcome 489 18.7.2 Read Me 489 18.7.3 License Agreement 490 18.7.4 Optional Files 490 18.7.5 選擇安裝文件夾 491 18.7.6 確認(rèn)安裝 492 18.7.7 進(jìn)度 492 18.7.8 結(jié)束安裝 493 18.7.9 運(yùn)行應(yīng)用程序 493 18.7.10 卸載 493 18.8 小結(jié) 493 18.9 練習(xí) 494 第Ⅲ部分 Web 編 程 第19章 Web編程基礎(chǔ) 497 19.1 概述 497 19.2 ASP .NET運(yùn)行庫(kù) 498 19.3 創(chuàng)建簡(jiǎn)單的Web頁(yè)面 498 19.4 服務(wù)器控件 504 19.5 事件處理程序 505 19.6 輸入的有效性驗(yàn)證 509 19.7 狀態(tài)管理 512 19.7.1 客戶(hù)端的狀態(tài)管理 513 19.7.2 服務(wù)器端的狀態(tài)管理 515 19.8 身份驗(yàn)證和授權(quán) 517 19.8.1 身份驗(yàn)證的配置 518 19.8.2 使用安全控件 522 19.9 讀寫(xiě)SQL Server數(shù)據(jù)庫(kù) 524 19.10 小結(jié) 530 19.11 練習(xí) 531 第20章 Web高級(jí)編程 532 20.1 母版頁(yè) 532 20.2 站點(diǎn)導(dǎo)航 537 20.3 用戶(hù)控件 539 20.4 個(gè)性化配置 541 20.4.1 個(gè)性化配置組 543 20.4.2 組件的個(gè)性化配置 543 20.4.3 定制數(shù)據(jù)類(lèi)型中的個(gè)性化配置 543 20.4.4匿名用戶(hù)的個(gè)性化配置 544 20.5 Web Parts 545 20.5.1 WebPartManager控件 546 20.5.2 WebPartZone控件 546 20.5.3 EditorZone控件 548 20.5.4 CatalogZone控件 550 20.5.5 ConnectionsZone控件 551 20.6 JavaScript 554 20.6.1 Script元素 555 20.6.2 變量的聲明 555 20.6.3 定義函數(shù) 555 20.6.4 語(yǔ)句 556 20.6.5 對(duì)象 556 20.7 小結(jié) 560 20.8 練習(xí) 560 第21章 Web服務(wù) 561 21.1 Web服務(wù)推出之前 561 21.1.1 遠(yuǎn)程過(guò)程調(diào)用(RPC) 562 21.1.2 SOAP 563 21.2 使用Web服務(wù)的場(chǎng)合 563 21.2.1 賓館旅行社代理應(yīng)用程序 564 21.2.2 圖書(shū)發(fā)布應(yīng)用程序 564 21.2.3 客戶(hù)應(yīng)用程序的類(lèi)型 564 21.2.4 應(yīng)用程序的體系結(jié)構(gòu) 564 21.3 Web服務(wù)的體系結(jié)構(gòu) 565 21.3.1 可以調(diào)用的方法 565 21.3.2 調(diào)用方法 566 21.3.3 SOAP和防火墻 567 21.3.4 WS-I基本個(gè)性化配置 568 21.4 Web服務(wù)和.NET Framework 568 21.4.1 創(chuàng)建Web服務(wù) 568 21.4.2 客戶(hù)程序 570 21.5 創(chuàng)建簡(jiǎn)單的ASP .NET Web服務(wù) 571 21.6 測(cè)試Web服務(wù) 572 21.7 執(zhí)行Windows客戶(hù)程序 574 21.8 異步調(diào)用服務(wù) 577 21.9 執(zhí)行ASP .NET客戶(hù)程序 580 21.10 傳送數(shù)據(jù) 581 21.11 小結(jié) 584 21.12 練習(xí) 584 第22章 Ajax編程 586 22.1 Ajax概述 586 22.2 UpdatePanel控件 587 22.3 Timer控件 591 22.4 UpdateProgress控件 592 22.5 Web服務(wù) 594 22.6 擴(kuò)展控件 598 22.7 小結(jié) 600 22.8 練習(xí) 600 第23章 部署Web應(yīng)用程序 601 23.1 Internet Information Services 601 23.2 IIS配置 602 23.3 復(fù)制Web站點(diǎn) 604 23.4 發(fā)布Web站點(diǎn) 606 23.5 Windows安裝程序 607 23.5.1 創(chuàng)建安裝程序 607 23.5.2 安裝Web 應(yīng)用程序 609 23.6 小結(jié) 610 23.7 練習(xí) 610 第Ⅳ部分 數(shù) 據(jù) 訪(fǎng) 問(wèn) 第24章 文件系統(tǒng)數(shù)據(jù) 613 24.1 流 613 24.2 用于輸入和輸出的類(lèi) 614 24.2.1 File類(lèi)和Directory類(lèi) 615 24.2.2 FileInfo類(lèi) 616 24.2.3 DirectoryInfo類(lèi) 617 24.2.4 路徑名和相對(duì)路徑 618 24.2.5 FileStream對(duì)象 618 24.2.6 StreamWriter對(duì)象 624 24.2.7 StreamReader對(duì)象 626 24.2.8 讀寫(xiě)壓縮文件 632 24.3 序列化對(duì)象 635 24.4 監(jiān)控文件結(jié)構(gòu) 639 24.5 小結(jié) 645 24.6 練習(xí) 646 第25章 XML 647 25.1 XML文檔 647 25.1.1 XML元素 647 25.1.2 屬性 648 25.1.3 XML聲明 649 25.1.4 XML文檔的結(jié)構(gòu) 649 25.1.5 XML名稱(chēng)空間 650 25.1.6 格式良好并有效的XML 651 25.1.7 驗(yàn)證XML文檔 651 25.2 在應(yīng)用程序中使用XML 654 25.2.1 XML文檔對(duì)象模型 655 25.2.2 選擇節(jié)點(diǎn) 663 25.3 小結(jié) 670 25.4 練習(xí) 671 第26章 LINQ簡(jiǎn)介 672 26.1 LINQ的變體 673 26.2 第一個(gè)LINQ查詢(xún) 673 26.2.1 用var關(guān)鍵字聲明結(jié)果變量 675 26.2.2 指定數(shù)據(jù)源:from子句 675 26.2.3 指定條件:where子句 675 26.2.4 指定元素:select子句 676 26.2.5 完成:使用foreach循環(huán) 676 26.2.6 延遲執(zhí)行的查詢(xún) 676 26.3使用LINQ方法語(yǔ)法和?表達(dá)式 676 26.3.1 LINQ擴(kuò)展方法 676 26.3.2 查詢(xún)語(yǔ)法和方法語(yǔ)法 677 26.3.3 ?表達(dá)式 677 26.4 排序查詢(xún)結(jié)果 679 26.5 orderby子句 680 26.6 用方法語(yǔ)法排序 681 26.7 查詢(xún)大型數(shù)據(jù)集 682 26.8 合計(jì)運(yùn)算符 685 26.9 查詢(xún)復(fù)雜的對(duì)象 688 26.10 投射:在查詢(xún)中創(chuàng)建新對(duì)象 691 26.11 投射:方法語(yǔ)法 693 26.12 單值選擇查詢(xún) 693 26.13 Any和All 694 26.14 多級(jí)排序 696 26.15 多級(jí)排序方法語(yǔ)法:ThenBy 698 26.16 組合查詢(xún) 698 26.17 Take和Skip 700 26.18 First和FirstOrDefault 702 26.19 集運(yùn)算符 703 26.20 Join查詢(xún) 706 26.21 資源和進(jìn)一步閱讀 707 26.22 小結(jié) 707 26.23 練習(xí) 707 第27章 LINQ to SQL 709 27.1 對(duì)象相關(guān)映射 709 27.2 安裝SQL Server和Northwind示例數(shù)據(jù) 710 27.2.1 安裝SQL Server Express2005 710 27.2.2 安裝Northwind示例數(shù)據(jù)庫(kù) 711 27.3 第一個(gè)LINQ to SQL查詢(xún) 712 27.4 瀏覽LINQ to SQL關(guān)系 717 27.5 進(jìn)一步探討LINQ to SQL 720 27.6 LINQ to SQL中的組合、排序和其他高級(jí)查詢(xún) 723 27.7 顯示生成的SQL 725 27.8 用LINQ to SQL綁定數(shù)據(jù) 729 27.9 用LINQ to SQL更新綁定數(shù)據(jù) 733 27.10 小結(jié) 734 27.11 練習(xí) 735 第28章 ADO .NET和LINQ over DataSet 736 28.1 ADO .NET概述 736 28.1.1 ADO .NET名稱(chēng)的來(lái)源 737 28.1.2 ADO .NET的設(shè)計(jì)目標(biāo) 738 28.2 ADO .NET類(lèi)和對(duì)象概述 739 28.2.1 提供者對(duì)象 739 28.2.2 用戶(hù)對(duì)象 740 28.2.3 使用System.Data名稱(chēng)空間 741 28.3 用DataReader讀取數(shù)據(jù) 742 28.4 用DataSet讀取數(shù)據(jù) 749 28.4.1 用數(shù)據(jù)填充DataSet 749 28.4.2 訪(fǎng)問(wèn)DataSet中的表、行和列 749 28.5 更新數(shù)據(jù)庫(kù) 752 28.5.1 給數(shù)據(jù)庫(kù)添加行 755 28.5.2 刪除行 761 28.6 在DataSet中訪(fǎng)問(wèn)多個(gè)表 762 28.6.1 ADO .NET中的關(guān)系 762 28.6.2 用關(guān)系導(dǎo)航 763 28.7 XML和ADO .NET 770 28.8 ADO .NET中的SQL支持 773 28.8.1 DataAdapter對(duì)象中的 SQL命令 773 28.8.2 直接執(zhí)行SQL命令 776 28.8.3 調(diào)用SQL存儲(chǔ)過(guò)程 778 28.9 使用LINQ over DataSet和ADO .NET 780 28.10 小結(jié) 784 28.11 練習(xí) 784 第29章 LINQ to XML 785 29.1 LINQ to XML函數(shù)構(gòu)造方法 785 29.2 保存和加載XML文檔 789 29.2.1 從字符串中加載XML 791 29.2.2 已保存的XML文檔內(nèi)容 792 29.3 處理XML片段 792 29.4 通過(guò)LINQ to XML生成 XML 794 29.5 查詢(xún)XML文檔 798 29.6 小結(jié) 804 29.7 練習(xí) 804 第Ⅴ部分 其 他 技 術(shù) 第30章 屬性 809 30.1 什么是屬性 809 30.2 反射 812 30.3 內(nèi)置屬性 815 30.3.1 System.Diagnostics.ConditionalAttribute 815 30.3.2 System.Obsolete Attribute 817 30.3.3 System.Serializable Attribute 818 30.3.4 System.Reflection.AssemblyDelaySignAttribute 821 30.4 定制屬性 824 30.4.1 BugFixAttribute 824 30.4.2 System.AttributeUsageAttribute 826 30.5 小結(jié) 830 第31章 XML文檔說(shuō)明 831 31.1 添加X(jué)ML文檔說(shuō)明 831 31.1.1 XML文檔說(shuō)明的注釋 833 31.1.2 使用類(lèi)圖添加X(jué)ML文檔說(shuō)明 839 31.1.3 生成XML文檔說(shuō)明文件 842 31.1.4 帶有XML文檔說(shuō)明的應(yīng)用程序示例 844 31.2 使用XML文檔說(shuō)明 846 31.2.1 編程處理XML文檔說(shuō)明 846 31.2.2 用XSLT格式化XML文檔說(shuō)明 848 31.2.3 文檔說(shuō)明工具 849 31.3 小結(jié) 850 31.4 練習(xí) 851 第32章 網(wǎng)絡(luò) 852 32.1 聯(lián)網(wǎng)概述 852 32.1.1 名稱(chēng)的解析 855 32.1.2 統(tǒng)一資源標(biāo)識(shí)符 856 32.1.3 TCP和UDP 857 32.1.4 應(yīng)用協(xié)議 857 32.2 網(wǎng)絡(luò)編程選項(xiàng) 859 32.3 WebClient 859 32.4 WebRequest和WebResponse 861 32.5 TcpListener和TcpClient 868 32.6 小結(jié) 876 32.7 練習(xí) 876 第33章 GDI+簡(jiǎn)介 877 33.1 圖形繪制概述 877 33.1.1 Graphics類(lèi) 878 33.1.2 對(duì)象的刪除 878 33.1.3 坐標(biāo)系統(tǒng) 879 33.1.4 顏色 884 33.2 使用Pen類(lèi)繪制線(xiàn)條 885 33.3 使用Brush類(lèi)繪制圖形 887 33.4 使用Font 類(lèi)繪制文本 890 33.5 使用圖像進(jìn)行繪制 893 33.5.1 使用紋理畫(huà)筆繪圖 895 33.5.2 使用鋼筆繪制圖像 897 33.5.3 雙倍緩沖 898 33.6 GDI+的高級(jí)功能 900 33.6.1 剪切 900 33.6.2 System.Drawing.Drawing2D 901 33.6.3 System.Drawing.Imaging 901 33.7 小結(jié) 901 33.8 練習(xí) 902 第 34 章 Windows Presentation Foundation 903 34.1 WPF的概念 904 34.1.1 WPF給設(shè)計(jì)人員帶來(lái)的好處 904 34.1.2 WPF給C#開(kāi)發(fā)人員帶來(lái)的好處 906 34.2 基本W(wǎng)PF應(yīng)用程序的組成 906 34.3 WPF基礎(chǔ) 916 34.3.1 XAML語(yǔ)法 917 34.3.2 桌面和Web應(yīng)用程序 919 34.3.3 Application對(duì)象 920 34.3.4 控件基 920 34.3.5 控件的布局 928 34.3.6 控件的樣式 936 34.3.7 觸發(fā)器 941 34.3.8 動(dòng)畫(huà) 942 34.3.9 靜態(tài)和動(dòng)態(tài)資源 944 34.4 用WPF編程 949 34.4.1 WPF用戶(hù)控件 950 34.4.2 實(shí)現(xiàn)依賴(lài)屬性 950 34.5 小結(jié) 959 34.6 練習(xí) 960 第35 章 Windows Communication Foundation 961 35.1 WCF是什么 961 35.2 WCF概念 962 35.2.1 WCF通信協(xié)議 962 35.2.2 地址、端點(diǎn)和綁定 963 35.2.3 合同 964 35.2.4 消息模式 965 35.2.5 行為 965 35.2.6 主機(jī) 965 35.3 WCF編程 966 35.3.1 定義WCF服務(wù)合同 973 35.3.2 自存儲(chǔ)的WCF服務(wù) 979 35.4 小結(jié) 985 35.5 練習(xí) 986 第36章 Windows Workflow Foundation 987 36.1 活動(dòng) 990 36.1.1 DelayActivity 990 36.1.2 SuspendActivity 991 36.1.3 WhileActivity 992 36.1.4 SequenceActivity 994 36.1.5 定制活動(dòng) 997 36.2 工作流運(yùn)行庫(kù) 1002 36.3 數(shù)據(jù)綁 1007 36.4 小結(jié) 1010 序言
標(biāo)簽:
上傳時(shí)間: 2013-11-16
上傳用戶(hù):xinyuzhiqiwuwu
HT45R37 內(nèi)建有Serial InterfaCE Function,其中包括了SPI 和I2C 這兩種串列傳輸模式,本文 以HT45R37 為母體,介紹使用SPI 進(jìn)行資料傳輸?shù)姆椒ê妥⒁馐马?xiàng)
上傳時(shí)間: 2013-11-22
上傳用戶(hù):lz4v4
HIGH SPEED 8051 μC CORE - Pipe-lined Instruction Architecture; Executes 70% of Instructions in 1 or 2 System Clocks - Up to 25MIPS Throughput with 25MHz System Clock - 22 Vectored Interrupt Sources MEMORY - 4352 Bytes Internal Data RAM (256 + 4k) - 64k Bytes In-System Programmable FLASH Program Memory - External Parallel Data Memory InterfaCE – up to 5Mbytes/sec DIGITAL PERIPHERALS - 64 Port I/O; All are 5V tolerant - Hardware SMBusTM (I2CTM Compatible), SPITM, and Two UART Serial Ports Available Concurrently - Programmable 16-bit Counter/Timer Array with 5 Capture/Compare Modules - 5 General Purpose 16-bit Counter/Timers - Dedicated Watch-Dog Timer; Bi-directional Reset CLOCK SOURCES - Internal Programmable Oscillator: 2-to-16MHz - External Oscillator: Crystal, RC, C, or Clock - Real-Time Clock Mode using Timer 3 or PCA SUPPLY VOLTAGE ........................ 2.7V to 3.6V - Typical Operating Current: 10mA @ 25MHz - Multiple Power Saving Sleep and Shutdown Modes 100-Pin TQFP (64-Pin Version Available) Temperature Range: –40°C to +85°C
標(biāo)簽: C8051F020
上傳時(shí)間: 2013-10-12
上傳用戶(hù):lalalal
針對(duì)目前使用的RS232接口數(shù)字化B超鍵盤(pán)存在PC主機(jī)啟動(dòng)時(shí)不能設(shè)置BIOS,提出一種PS2鍵盤(pán)的設(shè)計(jì)方法。基于W78E052D單片機(jī),采用8通道串行A/D轉(zhuǎn)換器設(shè)計(jì)了8個(gè)TGC電位器信息采集電路,電位器位置信息以鍵盤(pán)掃描碼序列形式發(fā)送,正交編碼器信號(hào)通過(guò)XC9536XL轉(zhuǎn)換為單片機(jī)可接收的中斷信號(hào),軟件接收到中斷信息后等效處理成按鍵。結(jié)果表明,在滿(mǎn)足開(kāi)機(jī)可設(shè)置BIOS同時(shí),又可實(shí)現(xiàn)超聲特有功能,不需要專(zhuān)門(mén)設(shè)計(jì)驅(qū)動(dòng)程序,接口簡(jiǎn)單,成本低。 Abstract: Aiming at the problem of the digital ultrasonic diagnostic imaging system keyboard with RS232 InterfaCE currently used couldn?蒺t set the BIOS when the PC boot, this paper proposed a design method of PS2 keyboards. Based on W78E052D microcontroller,designed eight TGC potentiometers information acquisition circuit with 8-channel serial A/D converter, potentiometer position information sent out with keyboard scan code sequentially.The control circuit based on XC9536 CPLD is used for converting the mechanical actions of the encoders into the signals that can be identified by the MCU, software received interrupt information and equivalently treatmented as key. The results show that the BIOS can be set to meet the boot, ultrasound specific functionality can be achieved at the same time, it does not require specially designed driver,the InterfaCE is simple and low cost.
標(biāo)簽: 單片機(jī) B超 數(shù)字化 鍵盤(pán)設(shè)計(jì)
上傳時(shí)間: 2013-10-10
上傳用戶(hù):asdfasdfd
在航電系統(tǒng)維護(hù)過(guò)程中,為解決定位故障的效率和降低維修成本等問(wèn)題,提出了基于ICD(InterfaCE Control Document,接口控制文件)的1553B總線(xiàn)的信息監(jiān)控系統(tǒng)模型。該系統(tǒng)運(yùn)用數(shù)據(jù)采集卡對(duì)總線(xiàn)中傳輸?shù)男盘?hào)有無(wú)失真、偏差等電氣特性進(jìn)行檢測(cè),并使用1553B通訊卡通過(guò)測(cè)控軟件LabWindows/CVI編程與ICD數(shù)據(jù)庫(kù)的動(dòng)態(tài)鏈接,實(shí)現(xiàn)總線(xiàn)信息的解析和故障的判斷。與傳統(tǒng)的維護(hù)過(guò)程相比,這種模型能夠從信號(hào)的電氣特性以及信息的解析等全方位的去檢測(cè)判斷故障的來(lái)源,并且能夠廣泛在其他1553B總線(xiàn)系統(tǒng)內(nèi)擴(kuò)展應(yīng)用。驗(yàn)證表明該監(jiān)控系統(tǒng)可以對(duì)總線(xiàn)信息進(jìn)行快速有效地監(jiān)測(cè)分析,能滿(mǎn)足應(yīng)用需求。 Abstract: In the process of avionics system maintenance, to solve the problems such as improving the efficiency of fast orientation to troubles and reducing maintenance cost, system of 1553B bus information monitor model based on ICD was proposed. The system observed whether the data which transmitted on the bus appear distortion and deviation by using data acquisition card. And using 1553B communication card programming of the measure software LabWindows/CVI and the dynamic linking of ICD database, message analysis and fault estimation could be realized. Compared with traditional maintenance, this model can all-dimensionally detect and analyze the source of faults from both electrical characteristics of the signal and message analysis, and it can be widely applied in the other 1553B system. Experiment shown that this monitor system can effectively detect and analyze the bus message and can meet the application requirements.
標(biāo)簽: 1553B 總線(xiàn) 信息監(jiān)控
上傳時(shí)間: 2013-11-23
上傳用戶(hù):18752787361
為解決當(dāng)前計(jì)算機(jī)串行通訊接口只有USB,難以滿(mǎn)足舊型號(hào)設(shè)備或某些單片機(jī)要求RS232通訊的問(wèn)題,設(shè)計(jì)出兩款RS232/USB電路。采用CH341A與MAX223集成電路芯片構(gòu)建標(biāo)準(zhǔn)9線(xiàn)RS232/USB通用接口轉(zhuǎn)換器,無(wú)需編程。采用CH341A與PIC16F877A構(gòu)建單片機(jī)與計(jì)算機(jī)之間的USB通訊電路,軟件遵循RS232通訊協(xié)議,硬件進(jìn)行電平轉(zhuǎn)換。實(shí)際使用表明,這兩款產(chǎn)品與計(jì)算機(jī)端Windows 操作系統(tǒng)下的串口應(yīng)用程序完全兼容,且通訊過(guò)程中無(wú)握手失敗現(xiàn)象。 Abstract: To solve the problem that current computer serial communication only with USB InterfaCE can not satisfy with the old type equipments or MCU to communicate with RS232, two kinds of RS232/USB circuit were designed.CH341A and MAX223 integrated circuit chips were used to create a standard 9-line RS232/USB universal InterfaCE convertor without programme. CH341A and PIC16F877A chips were adopted to build the USB communication circuit between computers and MCU. The software follows RS232 communication protocol, and the hardware converts electrical levels. Actual practices indicate that the two manufactures are compatible with serial application program of Windows operation system completely,and get avoid of handshake lost.
上傳時(shí)間: 2013-11-03
上傳用戶(hù):siying
AVR32801: UC3A3 Schematic Checklist Features • Power circuit • Reset circuit • USB connection • External bus InterfaCE • ABDAC sound DAC InterfaCE • JTAG and Nexus debug ports • Clocks and crystal oscillators • MMC, SD-card, SDHC, SDIO and CE-ATA InterfaCE 1 Introduction A good hardware design comes from a proper schematic. Since UC3A3 devices have a fair number of pins and functions, the schematic for these devices can be large and quite complex. This application note describes a common checklist which should be used when starting and reviewing the schematics for a UC3A3 design.
標(biāo)簽: Schematic 32801 UC3A3 Chec
上傳時(shí)間: 2014-12-26
上傳用戶(hù):DXM35
以太網(wǎng)和CAN總線(xiàn)應(yīng)用廣泛,但由于其通信協(xié)議不同,兩種總線(xiàn)器件間無(wú)法進(jìn)行數(shù)據(jù)通信,因此,設(shè)計(jì)了基于CP2200與C8051F040的以太網(wǎng)總線(xiàn)與CAN總線(xiàn)接口轉(zhuǎn)換電路,并給出部分相關(guān)硬件電路與軟件設(shè)計(jì)分析。在保證數(shù)據(jù)完整和協(xié)議可靠的前提下,通過(guò)握手協(xié)議和簡(jiǎn)化的以太網(wǎng)協(xié)議,不僅實(shí)現(xiàn)了以太網(wǎng)數(shù)據(jù)與CAN數(shù)據(jù)的轉(zhuǎn)發(fā),同時(shí)還順利的解決了以太網(wǎng)的高速性與CAN的低速率沖突,以及兩者數(shù)據(jù)包之間的大小不同的矛盾。 Abstract: In the development of actual application, Ethernet and CAN bus are used very extensively. Owing to its various communication protocols, the communicating between two kinds of bus device can’t be carried out. Therefore, in order to solve this problem, the Ethernet-CAN bus InterfaCE circuit based on CP2200 and C8051F040 was designed in this paper, and part of the related hardware circuit and software design analysis were given. On the condition of data’s integrity and protocols’reliability, through the handshaking protocols and the simplified the Ethernet protocol, not only the data switching between CAN and Ethernet was realized, but also the differ in velocity and packet size was solved.
標(biāo)簽: C8051F040 CAN 以太網(wǎng) 轉(zhuǎn)換
上傳時(shí)間: 2013-10-15
上傳用戶(hù):Ants
詳細(xì)介紹工控軟件組態(tài)王與單片機(jī)多機(jī)串口通訊的設(shè)計(jì)原理。分析組態(tài)王提供的直接與單片機(jī)串口通信方法的優(yōu)點(diǎn),給出系統(tǒng)基于RS-485總線(xiàn)傳輸?shù)慕涌陔娐吩韴D。根據(jù)組態(tài)王提供的通訊協(xié)議和單片機(jī)多機(jī)串口通訊的原理,給出程序設(shè)計(jì)流程與思路。 Abstract: In this paper,the design principle of communication between multi-SCM and KingView by serial ports is described in detail.We analysis the advantage of method supplied by KingView,by which KingView can communicate with serial ports of SCM directly,and provide the system’s InterfaCE circuit based on the RS-485transmission line.We provide flow diagram of programming and thinking on the basis of communication protocol supplied by KingView and principle of communication among multi-SCM through serial ports.
標(biāo)簽: 工控軟件 單片機(jī) 串口通訊 多機(jī)
上傳時(shí)間: 2013-12-19
上傳用戶(hù):tecman
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1