Bài giảng Công nghệ lập trình tiên tiến - Custom Component

"Custom" Controls: (Extending an existing control)

– Extends an existing control with additional features

– Typically derive from RichControl

– The best approach to build a control library

– This example of a "Numeric up/down" control is an extension of a textbox.

 

pptx58 trang | Chuyên mục: Lập Trình Trực Quan | Chia sẻ: dkS00TYs | Lượt xem: 4743 | Lượt tải: 3download
Tóm tắt nội dung Bài giảng Công nghệ lập trình tiên tiến - Custom Component, để xem tài liệu hoàn chỉnh bạn click vào nút "TẢI VỀ" ở trên
Click to edit Master title style Click to edit Master text styles Second level Third level Fourth level Fifth level ‹#› Metro Creating User Interface Using custom components Creating your own control Using 3rd controls 1. User control vs Custom control "Custom" Controls: (Extending an existing control) – Extends an existing control with additional features – Typically derive from RichControl – The best approach to build a control library – This example of a "Numeric up/down" control is an extension of a textbox. 1. User control vs Custom control "User" or Composite Controls: – Composes multiple existing controls into a reusable "group" – Derives from UserControl – This example of an "RGB user control" composes three labels and textboxes. Example : custom control Create simple textbox – Input data • If user enter not number  show message and set focus • Change BackColor to Red if user enter value is Negative number 1. User control vs Custom control public partial class MyTextBox : TextBox { private void MyTextBox_Validating 	(object sender, CancelEventArgs e) { double v=0; if (!double.TryParse(this.Text, out v)){ MessageBox.Show("Not valid Number"); this.Focus(); } else{ if (v compile -> document file … – Sandcastle (free) – Ndoc (free) – Vsdocman Creating user manual • Create wordpad doc, pdf (common) file • Create website • Movie file • Create chm file User manual: Create chm file • Using ichm – Create topics • 1. Software and hardware requirements • 2. How to install & update • 3. Introdution • 4. Using softwares 	–… • 5. FAQ • 6. Troubleshout Exercise: Create CHM Documentation Each group make a project then create CHM documentation for this project UI flow diagram • Enable to model the high-level relationships between major user interface. • Also called storyboards, interface-flow diagrams, windows navigation diagrams, and context-navigation maps Tool – MS Visio – Rational Rose UI flow diagram Program Functions Detail • Things your application can do • Things your application can not do • Application rules • Main function • More (option) functions Program Functions Detail • Example – Express Burn Disc Burning Software functions • Audio CD Recording • Data CD, DVD or Blu-Ray Writing – Data CDs are fully ISO compliant with Joliet extension – Burns ISO compliant data DVDs (4.5GB+ DVD-R, DVD-RW, DVD+R, DVD+RW) – Burn Blu-ray discs (25GB/50GB BD-R, BD-RE, BD-R DL, BD-RE DL) • Advanced Disc Burning Features – Supports multi session recording to Audio CD or DVD. – Records CD Recordable (CDR) and CD Re-recordable (CDRW) discs (and DVD and BD equivalents) Report • Summary data for user – View (soft copy) – Print (hard copy) – Log Exercise: Each group uses MS Visio 2010 to create UI flow diagram END 

File đính kèm:

  • pptx1-Week1_Custom Component.pptx
Tài liệu liên quan