Quản lý trung tâm tin học - Pdf 22

HO CHI MINH UNIVERSITY OF INDUSTRY
Faculty of Information Technology
LAB REPORT
Software Development Topics
Student:Vũ Văn Thức
ID:09017172
Class:CDTH11K
I.Part 1: Custom Component 3
1) Exercise 1: 3
2) Exercise 2: 4
3) Exercise 3: 5
4) Exercise 4: 6
5) Exercise 5: 7
6) Exercise 6: 7
7) Exercise 7: 8
8) Exercise 8: 9
9) Exercise 9: 9
10) Exercise 10: 10
11) Exercise 11: 10
12) Exercise 12: 11
13) Exercise 13: 11
14) Exercise 14: 12
15) Exercise 15: 12
16) Exercise 16 13
17) Exercise 17: 13
18) Exercise 18: 14
II.Part 2: LinQ 14
1) Exercise 1: 14
2) Exercise 2: 15
3) Exercise 3: 15
4) Exercise 4: 16

control vào ta được:
Kết Quả:
4) Exercise4: Ribbon Contextual Tab Groups
Cách Làm
-Tạo Office2007RibbonControl
-Chọn RibbonTab sửa thuôc tính Group
-Muốn cho cùng nhóm thì cho cùng tên Groub.
Kết Quả
5) Exercise5: Office 2007 Style Drop-Down Galleries
Cách Làm
-Tạo Office2007RibbonControl
-Click chuột phải vào RibbonBar chọn Add Galleries Container
-Thêm một vài control vào để kiểm tra.
Kết Quả
6) Exercise6: Grouping Popup Gallery Items
Cách Làm:
-Sử dụng bài 5, chọn các control và cho vào các Group
Kết Quả:
7) Exercise7: Using Expandable Panel control to create Office 2010 Access like
Navigation Pane
Cách Làm:
-Kéo thả Expandable Panel vào from chính và gán thuộc tính Dock là left.
-Kéo thả tiếp Expandable Panel vào Expandable Panel đầu tiên đã tạo.
-Chỉnh các Expandable Panel thuộc tính ExpanOnTitleClick = true.
Kết Quả:
8) Exercise8: Creating Menus and Toolbars with DotNetBar
Cách Làm:
-Trong form kéo thả DotNetBarMannager vào.
-Click phải chọn Add Menu Bar.
-Click phải chọn Add ToolBar và Add các Button menu vào

14) Exercise14:Working with NavigationPane Control
Cách Làm:
-Trong thanh Toolbox kéo thả NavigationPane vào from.
-Click phải vào NavigationPane tạo vài panel.
-Kéo thả một vài textbox … vào.
Kết Quả:
15) Exercise15: Working with New Tab Control
Cách Làm:
-Trong thanh Toolbox kéo thả Tab Control vào from.
-Click phải vào panel vừa tạo chọn Create new tab để tạo thêm tab.
-Điền thông tin và chỉnh một số chức năng của tab theo yêu cầu.
Kết Quả:
16) Exercise16: Working with New BubbleBar Control
Cách Làm:
-Trong thanh Toolbox kéo thả BubbleBar vào from.
-Thêm một vài tab và item cho BubbleBar.
Kết Quả
17) Exercise17: Working with New ExpandableSplitter Control
-Cách Làm:
-Kéo thả một panel vào form chỉnh dock là left
-Kéo thả ExpandableSplitter vào from.
-Hiệu chỉnh thuộc tính của ExpandControl ExpandableSplitter chọn panel
vừa tạo.
-Tương tự với panel nằm bên phải.
Kết Quả:
18) Exercise18: Document Docking
-Cách Làm:
-Kéo DotNetBarManager vào from
-Chuột phải vào DotNetBarManager vừa tạo chọn Enable Document
Docking.

var source = new List<string>() {"A","B","C"};
var sources = from c in source
select c;
source.Add("D");
=> Kết quả sẽ là A,B,C,D.
Kết Quả:
4) Exercise 4:LinQ Query Syntax
Mô tả:Phân biệt Query Syntax và Method syntax
Code:
//Query syntax
IEnumerable<int> query1 = from num in numbers
where num % 2 == 0 orderby num
select num;
//Method syntax
var query2 = numbers.Where(n => n % 2 == 0).OrderBy(n => n);
Kết Quả:
5) Exercise 5:LinQ và SQL
Mô tả: Thêm xóa sửa cơ bản bằng LinQ đến SQL
Code:
-Add LinQ to SQL class
PetshopDataContext db = new PetshopDataContext();//Tạo xxxDatacontex để truy
cập csdl.
var product = from m in db.Products select m; Lấy dữ liệu bảng Product
-Thêm một dũ liệu qua LinQ:
Product product = new Product();Tạo một product
Nhập dữ liệu cho product
product.ProductId = txtProID.Text;
product.CategoryId = txtCategoryID.Text;
product.Descn = txtDescn.Text;
product.Name = txtName.Text;

if (str.ToLower().Equals(textBox1.Text.ToLower())) Nếu tìm thấy
{
textBlock1.Inlines.Add(new Run(str) { Background = bru,FontSize=18 });//Tô màu
textBlock1.Inlines.Add(new Run(" "));Khoảng trắng
}
else textBlock1.Inlines.Add(new Run(str+" "));
}
Tương tự khi di chuyển chuột lên thay đổi
textBlock1.Inlines.Add(new Run(str) { Background = bru, FontSize = 18,
FontStyle=FontStyles.Italic });
Kết Quả:
2) Exercise 2:Basic control
Mô tả: Tạo một vài control cơ bản trong wpf
Kết Quả:
3) Exercise 3:Brush
Mô tả: Sử dụng các Brush của WPF
Code:
SolidColorBrush
<Button Content="SolidColorBrush1">
<Button.Background>
<SolidColorBrush>
<SolidColorBrush.Color>
<Color>
<Color.A>123</Color.A>
<Color.B>200</Color.B>
<Color.G>255</Color.G>
</Color>
</SolidColorBrush.Color>
</SolidColorBrush>
</Button.Background>

Vector size; // size cua button
Position = new Vector(button1.Margin.Left, button1.Margin.Top); Vị trí của button
size = new Vector(button1.Width, button1.Height);Lấy kích thước của button


Nhờ tải bản gốc

Tài liệu, ebook tham khảo khác

Music ♫

Copyright: Tài liệu đại học © DMCA.com Protection Status