private void LoadDS_LopHoc() { this.Grid_ItemLop.Children.Clear(); foreach (Lop_Class item in lst_LopHoc) { UserControls_UI.ItemLopHoc_UserControl itemLopHoc_UserControl = new UserControls_UI.ItemLopHoc_UserControl(item.ma_Lop, item.ten_Lop, item.ma_GiaoVien, item.siSo.ToString()); itemLopHoc_UserControl.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.grp_UI_MouseDoubleClick); this.Grid_ItemLop.Children.Add(itemLopHoc_UserControl); } }
private void grp_UI_MouseDoubleClick(object sender, MouseButtonEventArgs e) { UserControls_UI.ItemLopHoc_UserControl itemLopHoc_UserControl = sender as UserControls_UI.ItemLopHoc_UserControl; lvDanhSachHS.ItemsSource = vM_ThongTinLop.DanhSach_HocSinh(cbb_NamHoc.SelectedValue.ToString(), cbb_KhoiLop.SelectedValue.ToString(), itemLopHoc_UserControl.ma_LopHoc); }