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

31 676 12
Quản lý trung tâm tin học

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

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 5) Exercise 5: 16 III.Part 3: WPF 17 1) Exercise 1: 17 2) Exercise 2: 19 3) Exercise 3: 19 4) Exercise 4: 20 5) Exercise 5: 20 IV.Part 4: Net Remoting 23 1) Exercise 1: 23   Part 1: Custom Component 1) Exercise1: Creating Metro Forms Cách làm: Tạo project như bình thường. Project Add Window Form. Chọn Metro Form hoặc Metro App Form. Kết Quả : 2) Exercise2: Office 2007 Ribbon Control Cách làm: Tạo project như bình thường. Click chuột phải vào Form chính chọn View Code. Đổi phần thừa kế của Form thành Office2007RibbonControl Trong thanh Toolbox kéo thả RibbonControl vào Form

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 5) Exercise 5: 16 III.Part 3: WPF 17 1) Exercise 1: 17 2) Exercise 2: 19 3) Exercise 3: 19 4) Exercise 4: 20 5) Exercise 5: 20 IV.Part 4: Net Remoting 23 1) Exercise 1: 23 Part 1: Custom Component 1) Exercise1: Creating Metro Forms Cách làm: -Tạo project như bình thường. - Project/ Add Window Form. -Chọn Metro Form hoặc Metro App Form. Kết Quả : 2) Exercise2: Office 2007 Ribbon Control Cách làm: -Tạo project như bình thường. - Click chuột phải vào Form chính chọn View Code. -Đổi phần thừa kế của Form thành Office2007RibbonControl -Trong thanh Toolbox kéo thả RibbonControl vào Form Kết Quả: 3) Exercise3: Ribbon MDI Merging Cách Làm: -Tạo project như bình thường. -Kéo thả Ribbon Control vào form chính. -Trong form chính chọn thuộc tính isMdiContainer=true. -Tạo button để mở form con ta được: -Tạo Form con và kéo thả RibbonBarMergerContainer vào form và tạo vài 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 Kết Quả: [...]...9) Exercise9: Creating Dockable Window Cách Làm: -Trong form kéo thả DotNetBarMannager vào -Click phải vào DotNetBarMannager chọn Crete Dock Bar left ,right,button,top -Hiệu chỉnh theo ý muốn Kết Quả: 10) Exercise10:Creating Context Menus Cách Làm: -Trong Toolbox kéo thả ContextMenuBar vào form -Chỉnh menu theo ý muốn... txtConnect_Click(object sender, EventArgs e) { try { giaiPT = new GiaiPhuongTrinhBac2(); string url = "http://localhost:" + Int32.Parse(txtPort.Text) + "/GiaiPT"; RemotingConfiguration.RegisterWellKnownClientType(typeof(GiaiPhuongTrinhBac2) , url); lblStatus.Text = "Connecting "; } catch (Exception ex) { MessageBox.Show("Xảy ra lỗi:" + ex.Message, "Thông báo"); } } +Tính kết quả int a = Int32.Parse(txtA.Text); int b =... HttpChannel(Int32.Parse(txtPort.Text)); ChannelServices.RegisterChannel(httpChannel, false); WellKnownObjectMode mode = WellKnownObjectMode.SingleCall; RemotingConfiguration.RegisterWellKnownServiceType(typeof(GiaiPhuongTrinhBac2), "GiaiPT", mode); lblStatus.Text = "Server is Startting "; } catch (Exception ex) { MessageBox.Show(ex.Message,"Thông báo"); } } +Dừng server } if (ChannelServices.GetChannel("http") != null)... } scaleTransform.ScaleX = scaleX; scaleTransform.ScaleY = scaleY; btXoa.LayoutTransform = scaleTransform; Kết Quả: IV.Part 4 1) Exercise 1:Viết chương trình giải phương trình bậc 2 Mô tả: Dùng Net Remoting viết chương trình có server và client giải phương trình bậc 2 Code: - Class GiaiPhuongTrinhBac2.cs: + Khởi tạo các thuộc tính private int a; private int b; private int c; private float x1; private... tên của ContextMenuBar vừa tạo Kết Quả: 11) Exercise11: Office 2010 Status bar Cách Làm: -Trong Toolbox kéo thả bar vào from rồi gán thuộc tính Dock là botton -Thêm các button vào Bar để hiển thị thông tin Kết Quả: 12)Exercise12: Working with PanelEx Control Cách Làm: -Trong Toolbox kéo thả PannelEx vào from và hiệu chỉnh màu và các thuộc tính khác theo ý muốn Kết Quả: 13) Exercise13: dding DotNetBarManager... 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 . 3: 19 4) Exercise 4: 20 5) Exercise 5: 20 IV.Part 4: Net Remoting 23 1) Exercise 1: 23 Part 1: Custom Component 1) Exercise1: Creating Metro Forms Cách làm: -Tạo project như bình thường. - Project/. 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. Add Menu Bar. -Click phải chọn Add ToolBar và Add các Button menu vào Kết Quả: 9) Exercise9: Creating Dockable Window Cách Làm: -Trong form kéo thả DotNetBarMannager vào. -Click phải vào DotNetBarMannager

Ngày đăng: 04/10/2014, 20:04

Từ khóa liên quan

Mục lục

  • 6)Exercise 6:Resources Mô tả:Sử dùng resource làm việc với WPF Code: Tham chiếu điến file resource : <Window.Resources>

Tài liệu cùng người dùng

Tài liệu liên quan