Visual C# 2010與UML開發(fā)實(shí)戰(zhàn)
-
【作 者】張書源
【I S B N 】978-7-5084-8966-7
【責(zé)任編輯】李 炎
【適用讀者群】本專通用
【出版時(shí)間】2011-11-15
【開 本】16開
【裝幀信息】平裝(光膜)
【版 次】第1版第1次印刷
【頁 數(shù)】368
【千字?jǐn)?shù)】483
【印 張】23
【定 價(jià)】¥48
【叢 書】其他類
【備注信息】
簡(jiǎn)介
本書特色
前言
章節(jié)列表
精彩閱讀
下載資源
相關(guān)圖書
本書透過經(jīng)典的范例與練習(xí),幫助讀者在最短的時(shí)間學(xué)會(huì)如何使用C#程序語言搭配
Visual Studio 2010開發(fā)工具開發(fā).NET Framework 4平臺(tái)的應(yīng)用程序。全書分為Visual C# 程序基
礎(chǔ)與WPF應(yīng)用程序、C# 程序語言基礎(chǔ)與高級(jí)議題、新一代程序開發(fā)與UML實(shí)戰(zhàn)三大部分。
文中特別加入U(xiǎn)ML的章節(jié),有助于開發(fā)人員了解UML在項(xiàng)目中的應(yīng)用。并且結(jié)合了技
術(shù)學(xué)習(xí)與實(shí)務(wù)應(yīng)用,使讀者清楚全面地了解C#程序語言與.NET Framework的實(shí)際應(yīng)用。
本書適合教學(xué)以及作為.NET應(yīng)用程序開發(fā)人員自學(xué)的工具。
本書范例程序請(qǐng)至中國(guó)水利水電出版社和萬水書苑網(wǎng)站下載,網(wǎng)址為:http://www.
waterpub.com.cn/softdown/和http://www.dgboyong.cn。
本書為精誠(chéng)資訊股份有限公司—悅知文化授權(quán)中國(guó)水利水電出版社北京萬水電子信息有
限公司于中國(guó)大陸地區(qū)之中文簡(jiǎn)體版本。本著作物之專有出版權(quán)為精誠(chéng)資訊股份有限公司—
悅知文化所有。該專有出版權(quán)受法律保護(hù),任何人不得侵害之。
北京市版權(quán)局著作權(quán)合同登記號(hào):圖字01-2011-2615號(hào)
■ Visual C# 程序基礎(chǔ)與WPF 應(yīng)用程序
根據(jù)作者多年的授課經(jīng)驗(yàn),實(shí)際示范以.NET Framework 4.0、Visual Studio 2010工具來建立WPF應(yīng)用程序,并從中學(xué)習(xí)C# 程序語言的語法。
■ C# 程序語言基礎(chǔ)與高級(jí)議題
進(jìn)一步研究:面對(duì)對(duì)象封裝、繼承、多態(tài)的概念,并以計(jì)算機(jī)系統(tǒng)來編寫C#語法、數(shù)據(jù)與變量的聲明語法、數(shù)據(jù)類型、判斷與循環(huán)、聲明數(shù)組與集合的語法、調(diào)試與異常處理以及自定義子程序等實(shí)際常見的實(shí)用主題。
■ 新一代程序開發(fā)與UML 實(shí)戰(zhàn)
結(jié)合WF構(gòu)架,開發(fā)以工作流為主的應(yīng)用程序,通過WCF整合遠(yuǎn)端組件功能,搭配LINQ減化程序訪問數(shù)據(jù)時(shí)的代碼。并詳述如何讓以UML技術(shù)讓企業(yè)級(jí)系統(tǒng)獲得良好的系統(tǒng)開發(fā)、詮釋、改善與維護(hù)。這些全新的開發(fā)觀點(diǎn)都將在書中呈現(xiàn)完美的樣貌。
Chapter 1 Visual Studio 2010概述
1-1 認(rèn)識(shí)Visual Studio 2010 ····················3
1-1-1 Visual Studio開發(fā)工具版本介紹 ·····3
1-1-2 Visual Studio 2010 Express Editions ···4
1-1-3 Visual Studio 2010 ····························5
1-2 安裝Visual Studio 2010 ····················7
1-3 Visual Studio 2010開發(fā)工具 ···········10
1-3-1 啟動(dòng)Visual Studio 2010 ··················10
1-3-2 起始頁 ············································11
1-3-3 Visual Studio 2010集成開發(fā)環(huán)境 ··11
Chapter 2 創(chuàng)建WPF窗口應(yīng)用程序
2-1 認(rèn)識(shí)窗口應(yīng)用程序 ···························16
2-1-1 創(chuàng)建WPF應(yīng)用程序 ························16
2-1-2 設(shè)置屬性 ········································17
2-1-3 WPF窗體常用的屬性 ····················19
2-1-4 窗體的方法 ····································24
2-1-5 事件的基本概念 ····························25
2-1-6 WPF窗體常用的事件 ····················25
Chapter 3 WPF基本控件
3-1 在WPF窗體配置控件 ······················29
3-2 Label控件 ·······································32
3-3 TextBlock控件 ································32
3-4 TextBox控件 ···································33
3-4-1 TextBox控件常用屬性 ··················34
3-4-2 TextBox控件常用方法與事件 ······35
3-4-3 如何在TextBox控件選中文字 ······35
3-5 PasswordBox控件 ··························36
3-6 Button控件 ······································37
3-7 高級(jí)調(diào)整控件技巧 ···························37
3-8 代碼編輯窗口 ··································42
3-8-1 窗口文件管理 ································42
3-8-2 工具箱 ············································43
3-8-3 自定義代碼區(qū)域 ····························43
3-8-4 IntelliSense ······································44
3-8-5 程序編排 ········································45
Chapter 4 建立WPF主菜單
4-1 WPF窗體中的主菜單 ······················48
4-1-1 什么叫主菜單 ································48
4-1-2 DockPanel控件 ·······························48
4-1-3 建立WPF窗體中的主菜單 ············49
4-1-4 建立可記錄選中狀態(tài)的菜單選項(xiàng) 57
4-1-5 建立菜單項(xiàng)目的快捷鍵 ················61
4-1-6 設(shè)置菜單選項(xiàng)的圖片 ····················65
4-1-7 建立快捷菜單 ································66
Part II C#程序語言基礎(chǔ)與高級(jí)議題
Chapter 5 面向?qū)ο蠡A(chǔ)
5-1 認(rèn)識(shí)面向?qū)ο蟪绦蜷_發(fā) ···················69
5-1-1 什么叫對(duì)象 ····································69
5-1-2 C#面向?qū)ο蟪绦蚧靖拍?············70
5-1-3 C#面向?qū)ο蟪绦蛱攸c(diǎn) ····················76
5-1-4 對(duì)象與組件 ····································80
5-2 C#面向?qū)ο蟪绦?·····························87
5-2-1 建立對(duì)象實(shí)體 ································87
5-2-2 聲明屬性 ········································92
5-2-3 聲明方法 ········································96
5-2-4 this關(guān)鍵字介紹 ·······························99
5-2-5 訪問修飾符 ··································102
5-2-6 靜態(tài)成員 ······································102
Chapter 6 數(shù)據(jù)與變量
6-1 變量 ··············································109
6-1-1 聲明變量 ······································109
6-1-2 命名約定 ······································110
6-1-3 變量的種類 ··································110
6-2 基本類型 ·······································112
6-2-1 整數(shù)類型 ······································113
6-2-2 浮點(diǎn)類型 ······································114
6-2-3 字符(Char)類型 ·······················114
6-2-4 字符串(String)類型 ·················114
6-2-5 布爾值(Bool)類型 ···················115
6-2-6 對(duì)象(object)類型 ·····················115
6-2-7 空類型 ··········································115
6-2-8 隱式類型局部變量 ······················115
6-2-9 匿名類型 ······································116
6-2-10 類型初始值 ································116
6-2-11 選擇適當(dāng)?shù)念愋?························117
6-3 類型轉(zhuǎn)換 ·······································119
6-3-1 強(qiáng)制檢查類型 ······························119
6-3-2 C#的類型轉(zhuǎn)換語法 ······················120
6-3-3 更多轉(zhuǎn)換類型的方式 ··················120
6-4 常量與枚舉常量 ····························122
6-4-1 使用常量或枚舉常量的好處 ······122
6-4-2 聲明常量 ······································123
6-4-3 聲明與使用枚舉常量 ··················123
Chapter 7 判斷與循環(huán)
7-1 程序結(jié)構(gòu) ·······································127
7-1-1 順序進(jìn)行 ······································127
7-1-2 條件選擇 ······································127
7-1-3 重復(fù)運(yùn)行 ······································128
7-2 認(rèn)識(shí)運(yùn)算符 ···································129
7-2-1 算術(shù)運(yùn)算符 ··································129
7-2-2 連接運(yùn)算符 ··································129
7-2-3 關(guān)系運(yùn)算符 ··································130
7-2-4 Null類型關(guān)系運(yùn)算符 ···················130
7-2-5 邏輯運(yùn)算符 ··································131
7-2-6 位運(yùn)算符 ······································132
7-3 if條件判斷 ·····································133
7-3-1 單一條件if判斷 ····························133
7-3-2 if ... else判斷 ·································134
7-3-3 多個(gè)條件if判斷 ····························134
7-4 switch語句 ····································135
7-4-1 switch語法 ····································136
7-4-2 goto case語句 ·······························137
7-5 for循環(huán) ··········································139
7-5-1 for循環(huán)語法 ··································139
7-5-2 嵌套for循環(huán) ··································142
7-6 foreach循環(huán) ··································143
7-6-1 for循環(huán)與foreach循環(huán)的比較 ······143
7-6-2 foreach循環(huán)基本語法 ··················144
7-7 while循環(huán) ······································145
7-7-1 前置判斷 ······································145
7-7-2 后置判斷 ······································147
7-8 高級(jí)循環(huán)控制語法 ·························148
7-8-1 break語句 ······································148
7-8-2 continue語句 ·································149
7-8-3 goto語句 ······································149
7-8-4 return語句 ·····································150
Chapter 8 數(shù)組與集合
8-1 數(shù)組 ··············································152
8-1-1 建立數(shù)組 ······································152
8-1-2 建立多維數(shù)組 ······························153
8-1-3 訪問數(shù)組成員 ······························155
8-1-4 取出數(shù)組的長(zhǎng)度 ··························155
8-1-5 改變數(shù)組的大小 ··························155
8-2 ArrayList集合 ································157
8-2-1 認(rèn)識(shí)ArrayList ·······························157
8-2-2 ArrayList與Array的差異 ··············160
8-3 窗體與控件的集合屬性 ·················160
8-3-1 容器控件的Children屬性 ············160
8-3-2 列表控件的Items屬性 ··················161
8-4 泛型集合 ·······································163
Chapter 9 調(diào)試及異常處理
9-1 錯(cuò)誤種類 ·······································168
9-1-1 語法錯(cuò)誤 ······································168
9-1-2 邏輯錯(cuò)誤 ······································168
9-1-3 運(yùn)行階段錯(cuò)誤 ······························169
9-2 語法錯(cuò)誤偵測(cè) ································169
9-3 調(diào)試工具 ·······································170
9-3-1 中斷模式 ······································170
9-3-2 搜尋錯(cuò)誤程序 ······························175
9-3-3 調(diào)試窗口 ······································175
9-4 異常處理 ·······································182
9-4-1 Exception類 ··································182
9-4-2 try...catch語句 ·······························183
9-4-3 finally區(qū)塊 ····································184
9-4-4 拋出一個(gè)異常 ······························185
9-4-5 使用結(jié)構(gòu)化異常處理的建議 ······185
9-5 使用調(diào)試工具 ································188
Chapter 10 自定義子程序
10-1 認(rèn)識(shí)方法與子程序 ·······················191
10-1-1 方法與子程序的種類 ················191
10-1-2 沒有返回值的子程序 ················192
10-1-3 子程序返回值 ····························193
10-2 參數(shù) ············································194
10-2-1 輸入?yún)?shù) ····································194
10-2-2 指針參數(shù) ····································194
10-2-3 輸出參數(shù) ····································198
10-2-4 可變長(zhǎng)度參數(shù)(參數(shù)數(shù)組) ····199
10-2-5 命名參數(shù) ····································200
10-2-6 可選參數(shù) ····································200
10-3 工具的支持 ·································202
10-3-1 生成方法 ····································202
10-3-2 重命名 ········································202
10-3-3 使用重構(gòu)工具 ····························204
Chapter 11 面向?qū)ο蟾呒?jí)課題
11-1 部分類·········································209
11-2 抽象類·········································210
11-2-1 聲明抽象類 ································211
11-2-2 聲明抽象方法 ····························211
11-2-3 Sealed類與方法 ··························212
11-3 接口 ············································215
11-3-1 接口聲明的語法 ························216
11-3-2 聲明接口成員 ····························216
11-3-3 實(shí)現(xiàn)接口規(guī)格 ····························217
11-3-4 接口之間的繼承 ························219
11-4 委托 ············································224
11-4-1 聲明委托規(guī)格 ····························225
11-4-2 使用委托對(duì)象 ····························226
11-5 事件 ············································229
11-5-1 聲明事件 ····································229
11-5-2 .NET Framework中聲明事件的準(zhǔn)則 ··231
Part III 新一代程序開發(fā)與UML實(shí)戰(zhàn)
Chapter 12 LINQ
12-1 LINQ簡(jiǎn)介 ····································241
12-1-1 基本的LINQ語法 ·······················241
12-1-2 使用LINQ查詢表達(dá)式 ···············243
12-2 使用LINQ處理XML數(shù)據(jù) ··············245
12-2-1 XElement對(duì)象 ····························245
12-2-2 使用LINQ創(chuàng)建XML數(shù)據(jù) ··········247
12-2-3 使用LINQ訪問XML數(shù)據(jù) ··········248
12-3 使用LINQ訪問SQL數(shù)據(jù)庫(kù)···········251
12-3-1 創(chuàng)建LINQ to SQL類 ··················251
12-3-2 使用LINQ to SQL功能 ··············253
Chapter 13 結(jié)合WF開發(fā)WPF應(yīng)用程序
13-1 Windows Workflow Foundation
簡(jiǎn)介 ············································259
13-1-1 流的種類 ····································259
13-1-2 WF架構(gòu)簡(jiǎn)介 ······························262
13-2 創(chuàng)建并使用WF工作流 ·················264
13-2-1 創(chuàng)建基本工作流 ························264
13-2-2 聲明工作流執(zhí)行環(huán)境 ················266
13-2-3 創(chuàng)建工作流實(shí)體 ························266
13-2-4 創(chuàng)建自定義的活動(dòng) ····················272
13-2-5 創(chuàng)建書簽 ····································276
13-2-6 使用Flowchart活動(dòng)創(chuàng)建復(fù)雜
工作流 ·········································281
Chapter 14 結(jié)合WCF開發(fā)WPF應(yīng)用
程序
14-1 Windows Communication
Foundation簡(jiǎn)介 ··························295
14-1-1 WCF的架構(gòu)概念 ························295
14-1-2 創(chuàng)建服務(wù) ····································297
14-1-3 設(shè)置WCF服務(wù)位置與綁定 ········299
14-1-4 測(cè)試WCF服務(wù) ····························303
14-1-5 裝載WCF服務(wù) ····························305
14-2 創(chuàng)建WCF客戶端訪問服務(wù)功能 ····314
14-2-1 創(chuàng)建客戶端組件訪問服務(wù) ········314
14-2-2 在工作流中訪問WCF服務(wù) ········317
Chapter 15 使用UML建立項(xiàng)目模型
15-1 UML簡(jiǎn)介·····································324
15-2 Visual Studio 2010開發(fā)工具
對(duì)于UML的支援 ··························325
15-2-1 建立建模項(xiàng)目 ····························326
15-2-2 用例圖 ········································327
15-2-3 活動(dòng)圖 ········································332
15-2-4 順序圖 ········································339
15-2-5 組件圖 ········································344
15-2-6 類圖 ············································349
- C程序設(shè)計(jì)實(shí)踐教程 [劉衛(wèi)國(guó)]
- C程序設(shè)計(jì)(慕課版) [劉衛(wèi)國(guó)]
- 程序設(shè)計(jì)基礎(chǔ)實(shí)踐教程(C/C++語言版) [張桂芬 葛麗娜]
- C++案例項(xiàng)目精講 [主編 楊國(guó)興]
- SwiftUI完全開發(fā) [李智威 著]
- MySQL數(shù)據(jù)庫(kù)項(xiàng)目式教程 [陳亞峰]
- C語言程序設(shè)計(jì)習(xí)題與實(shí)驗(yàn)指導(dǎo)(第二版) [主編 甄增榮 張賓]
- C語言程序設(shè)計(jì)(第二版) [主編 甄增榮 田云霞]
- Unity3D虛擬現(xiàn)實(shí)應(yīng)用開發(fā)實(shí)踐 [主 編 劉龍]
- Python程序設(shè)計(jì) [主編 姜春磊 陳虹潔]
- C語言程序設(shè)計(jì)實(shí)踐教程(活頁式) [主編 鄭茵 陳巍 滕泓虬]
- 面向?qū)ο蟪绦蛟O(shè)計(jì) [主編 張勇 張平華 趙小龍]
- Python程序設(shè)計(jì)基礎(chǔ)及實(shí)戰(zhàn) [主編 劉健]
- C語言程序設(shè)計(jì) [姜雪]
- Python程序設(shè)計(jì)實(shí)踐教程 [王鶴琴 蔡正保]
- C++程序設(shè)計(jì)實(shí)踐教程(第三版) [主編 劉衛(wèi)國(guó) 曹岳輝]
- C++程序設(shè)計(jì)(第三版) [主編 曹岳輝 劉衛(wèi)國(guó)]
- C語言程序設(shè)計(jì)項(xiàng)目化教程(活頁式) [主編 張利華 潘曉利]
- 機(jī)器人流程自動(dòng)化(RPA)實(shí)戰(zhàn)——基于UiPath [主編 金鑫]
- Python 語言程序設(shè)計(jì)實(shí)踐指導(dǎo) [主編 張雙獅]
- Python程序設(shè)計(jì)案例教程 [主編 毛錦庚 鐘肖英 周賢來 ]
- 基于.NET Core框架的分布式系統(tǒng)架構(gòu)設(shè)計(jì) [湯佳 著]
- Python語言程序設(shè)計(jì)教程 [郭其標(biāo) 房宜汕]
- Python程序設(shè)計(jì) [李國(guó)燕 王新強(qiáng) 劉佳 等編著]
- Python程序設(shè)計(jì)項(xiàng)目化教程(活頁式) [主編 盧鳳偉]
- Java編程基礎(chǔ)案例式教程 [主編 陳艷華 唐春蘭]
- Python語言同步案例習(xí)題精解 [主編 肖朝暉]
- Unity應(yīng)用開發(fā)與實(shí)戰(zhàn)(微課版) [主 編 程永恒]
- PHP程序設(shè)計(jì)項(xiàng)目化教程 [主 編 杜海穎]
- 簡(jiǎn)單易懂的Python入門教程 [[日]大澤文孝 著]