Exemple #1
0
        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_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_KetQua.ItemsSource       = vM_KQCaNam.DanhSach_KetQua();
            cbb_KetQua.SelectedValuePath = "ma_KetQua";
            cbb_KetQua.DisplayMemberPath = "ten_KetQua";

            cbb_LopHoc.DisplayMemberPath = "ten_Lop";
            cbb_LopHoc.SelectedValuePath = "ma_Lop";
        }
Exemple #2
0
        private void Load_Combobox()
        {
            cbb_NamHoc.ItemsSource       = this.vM_DiemCaNhan.DanhSach_NamHoc();
            cbb_NamHoc.DisplayMemberPath = "ten_NamHoc";
            cbb_NamHoc.SelectedValuePath = "ma_NamHoc";

            cbb_HocKy.ItemsSource       = this.vM_DiemCaNhan.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";
        }