private void Load_Combobox()
        {
            cbb_NamHoc.ItemsSource       = vM_BangDiem.DanhSach_NamHoc();
            cbb_NamHoc.DisplayMemberPath = "ten_NamHoc";
            cbb_NamHoc.SelectedValuePath = "ma_NamHoc";

            cbb_KhoiLop.ItemsSource       = vM_BangDiem.DanhSach_KhoiLop();
            cbb_KhoiLop.DisplayMemberPath = "ten_KhoiLop";
            cbb_KhoiLop.SelectedValuePath = "ma_KhoiLop";

            cbb_HocKy.ItemsSource       = vM_BangDiem.DanhSach_HocKy();
            cbb_HocKy.DisplayMemberPath = "ten_HocKy";
            cbb_HocKy.SelectedValuePath = "ma_HocKy";

            cbb_HocLuc.ItemsSource       = vM_KQHocKy.DanhSach_HocLuc();
            cbb_HocLuc.DisplayMemberPath = "ten_HocLuc";
            cbb_HocLuc.SelectedValuePath = "ma_HocLuc";

            cbb_Hanhkiem.ItemsSource       = vM_KQHocKy.DanhSach_HanhKiem();
            cbb_Hanhkiem.DisplayMemberPath = "ten_HanhKiem";
            cbb_Hanhkiem.SelectedValuePath = "ma_HanhKiem";

            cbb_LopHoc.DisplayMemberPath = "ten_Lop";
            cbb_LopHoc.SelectedValuePath = "ma_Lop";
        }
예제 #2
0
        private void Load_UI()
        {
            cbb_NamHoc.ItemsSource       = vM_BangDiem.DanhSach_NamHoc();
            cbb_NamHoc.DisplayMemberPath = "ten_NamHoc";
            cbb_NamHoc.SelectedValuePath = "ma_NamHoc";

            cbb_KhoiLop.ItemsSource       = vM_BangDiem.DanhSach_KhoiLop();
            cbb_KhoiLop.DisplayMemberPath = "ten_KhoiLop";
            cbb_KhoiLop.SelectedValuePath = "ma_KhoiLop";

            cbb_HocKy.ItemsSource       = vM_BangDiem.DanhSach_HocKy();
            cbb_HocKy.DisplayMemberPath = "ten_HocKy";
            cbb_HocKy.SelectedValuePath = "ma_HocKy";

            cbb_MonHoc.ItemsSource       = vM_BangDiem.DanhSach_MonHoc();
            cbb_MonHoc.DisplayMemberPath = "ten_MonHoc";
            cbb_MonHoc.SelectedValuePath = "ma_MonHoc";

            cbb_LopHoc.DisplayMemberPath = "ten_Lop";
            cbb_LopHoc.SelectedValuePath = "ma_Lop";
        }