public pl_ThemLoaiNCC()
        {
            InitializeComponent();

            this.bl_LoaiNCC = new bus_LoaiNhaCungCap();
            this.initDataSource();
            this.DataContext = this.dataSource;
            this.createMaLoaiHH();
        }
示例#2
0
 public pl_windowThemLoaiNhaCungCap()
 {
     try
     {
         InitializeComponent();
         this.bus_LoaiNCC = new bus_LoaiNhaCungCap();
         this.vo_loaiNCC  = new vo_LoaiNhaCungCap();
         this.DataContext = vo_loaiNCC;
         // tao ma loai nha cung cap
         this.vo_loaiNCC.Id = bus_LoaiNCC.GetLastesIDLoaiNCC() + 1;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Loi!", MessageBoxButton.OK, MessageBoxImage.Information);
     }
 }