You are on page 1of 1

Phn tch v thit k phn mm

Lp 10HC

PHN TCH V THIT K PHN MM


BI TP 04 XY DNG USER CONTROL
Bi tp c nhn Bi tp t luyn tp Quy nh v vic np bi: Thi hn np bi: Cch np: theo quy nh trn website mn hc. np bi trn website mn hc vo mc Bi tp 04 Bi tp nhm (nhm ti a 02 sinh vin) Bi tp cn np

Bi lm c nn thnh 1 tp tin, t tn MSSV.zip (hoc .rar)

Yu cu:
Anh/Ch hy xy dng user control DongHoDienTu Bc 1: T xy dng 1 user control DongHoDienTu (xem hnh v d bn di). ng h t ng cp nht ni dung hin th sau mi giy (hng dn: s dng Timer).

Bc 2: Xy dng cc property (ca user control) cho php c v gn gi tr pht v giy cho user control. Bc 3: Xy dng cc phng thc (ca i tng user control) cho php Start, Stop, Pause v Resume ng h. Bc 4: Xy dng delegate v event cho php x l khi ng h chy n 1 gi tr cho trc. Bc 5: S dng user control xy dng trn 1 Form. Bc 6: B sung cc nt Start, Stop, Pause v Resume trn form. Khi ngi dng nhn nt trn form, form s iu khin user control (start, stop, pause v resume). Bc 7: Khi user control chy n 1 gi tr cho trc, form s nhn v x l s kin ny (v d nh ng form li)