private void cbLoaiQuyDinh_SelectedIndexChanged(object sender, EventArgs e) { this.mainBus = new MainBUS(); this.relationshipBUS = new RelationshipBUS(this.mainBus); string loaiQuanHe = cbLoaiQuyDinh.SelectedItem as string; if (loaiQuanHe == "Địa điểm mai táng") { Load_DiaDiemMaiTang(); } if (loaiQuanHe == "Nguyên nhân mất") { Load_NguyenNhanMat(); } if (loaiQuanHe == "Nghề nghiệp") { Load_NgheNghiep(); } if (loaiQuanHe == "Quê quán") { Load_QueQuan(); } if (loaiQuanHe == "Loại quan hệ") { Load_LoaiQuanHe(); } }
private void initData() { this.mainBus = new MainBUS(); this.deathReasonBUS = new DeathReasonBUS(mainBus); this.burialLocationBUS = new BurialLocationBUS(mainBus); this.hometownBUS = new HometownBUS(this.mainBus); this.jobBUS = new JobBUS(this.mainBus); this.relationshipBUS = new RelationshipBUS(this.mainBus); }
/// <summary> /// Initial data and references /// </summary> private void InitData() { this.mainBus = new MainBUS(); this.deathReasonBUS = new DeathReasonBUS(mainBus); this.burialLocationBUS = new BurialLocationBUS(mainBus); this.memberBus = new MemberBUS(this.mainBus); this.hometownBUS = new HometownBUS(this.mainBus); this.jobBUS = new JobBUS(this.mainBus); this.relationshipBUS = new RelationshipBUS(this.mainBus); this.archieveBUS = new ArchieveBUS(this.mainBus); cbLoaiQuyDinh.SelectedIndex = 0; cbLoaiQuyDinh.DropDownStyle = ComboBoxStyle.DropDownList; cbReportType.SelectedIndex = 0; cbReportType.DropDownStyle = ComboBoxStyle.DropDownList; this.loadAllMember(); this.tbMember.ClearSelection(); this.IS_START = false; }
private void Load_grvLoaiQuanHe() { this.mainBus = new MainBUS(); this.relationshipBUS = new RelationshipBUS(mainBus); grvAllQuyDinh.DataSource = this.relationshipBUS.getAll(); }