private void StackPanel_Loaded(object sender, RoutedEventArgs e)
 {
     this.txt_MaGiaoVien.Text        = this.ma_GiaoVien;
     this.vM_GiaoVien                = new VM_GiaoVien();
     cbb_ChuyenMon.ItemsSource       = this.vM_GiaoVien.DanhSach_MonHoc();
     cbb_ChuyenMon.SelectedValuePath = "ma_MonHoc";
     cbb_ChuyenMon.DisplayMemberPath = "ten_MonHoc";
 }
コード例 #2
0
        private void Load_UI()
        {
            this.vM_GiaoVien                = new VM_GiaoVien();
            cbb_ChuyenMon.ItemsSource       = this.vM_GiaoVien.DanhSach_MonHoc();
            cbb_ChuyenMon.SelectedValuePath = "ma_MonHoc";
            cbb_ChuyenMon.DisplayMemberPath = "ten_MonHoc";

            cbb_LoaiNguoiDung.ItemsSource       = this.vM_GiaoVien.DanhSach_LoaiNguoiDung();
            cbb_LoaiNguoiDung.SelectedValuePath = "ma_Loai";
            cbb_LoaiNguoiDung.DisplayMemberPath = "ten_Loai";
        }
コード例 #3
0
        private void Load_CBB()
        {
            this.vM_PhanCong = new VM_PhanCong();
            vM_GiaoVien      = new VM_GiaoVien();

            this.cbb_Lop.ItemsSource       = this.vM_PhanCong.DanhSach_LopHoc();
            this.cbb_Lop.SelectedValuePath = "ma_Lop";
            this.cbb_Lop.DisplayMemberPath = "ten_Lop";

            this.cbb_Mon.ItemsSource       = this.vM_PhanCong.DanhSach_MonHoc();
            this.cbb_Mon.SelectedValuePath = "ma_MonHoc";
            this.cbb_Mon.DisplayMemberPath = "ten_MonHoc";

            this.cbb_NamHoc.ItemsSource       = this.vM_PhanCong.DanhSach_NamHoc();
            this.cbb_NamHoc.SelectedValuePath = "ma_NamHoc";
            this.cbb_NamHoc.DisplayMemberPath = "ten_NamHoc";

            this.cbb_GiaoVien.ItemsSource       = this.vM_PhanCong.DanhSach_GiaoVien();
            this.cbb_GiaoVien.SelectedValuePath = "ma_GiaoVien";
            this.cbb_GiaoVien.DisplayMemberPath = "ten_GiaoVien";
        }