Ejemplo n.º 1
0
 public frmKhoHang()
 {
     InitializeComponent();
     panel2.Width  = Screen.PrimaryScreen.WorkingArea.Width;
     panel2.Height = Screen.PrimaryScreen.WorkingArea.Height;
     try
     {
         ucKhoHang khohang = new ucKhoHang();
         khohang.lnkDieuChuyenKho.MouseDown   += new System.Windows.Input.MouseButtonEventHandler(lnkDieuChuyenKho_MouseDown);
         khohang.lnkXNDieuChuyenKho.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkXNDieuChuyenKho_MouseDown);
         khohang.lnkKiemKeKho.MouseDown       += new System.Windows.Input.MouseButtonEventHandler(lnkKiemKeKho_MouseDown);
         khohang.lnkInTemMaVach.MouseDown     += new System.Windows.Input.MouseButtonEventHandler(lnkInTemMaVach_MouseDown);
         khohang.lnkNhapSoDuTonKho.MouseDown  += new System.Windows.Input.MouseButtonEventHandler(lnkNhapSoDuTonKho_MouseDown);
         khohang.lnkPhieuXuatHuy.MouseDown    += new System.Windows.Input.MouseButtonEventHandler(lnkPhieuXuatHuy_MouseDown);
         khohang.lnkXNPhieuXuatHuy.MouseDown  += new System.Windows.Input.MouseButtonEventHandler(lnkXNPhieuXuatHuy_MouseDown);
         elementHost_KhoHang.Child             = khohang;
     }
     catch
     {
     }
 }
Ejemplo n.º 2
0
 public frmKhoHang()
 {
     InitializeComponent();
     panel2.Width = Screen.PrimaryScreen.WorkingArea.Width;
     panel2.Height = Screen.PrimaryScreen.WorkingArea.Height;
     try
     {
         ucKhoHang khohang = new ucKhoHang();
         khohang.lnkDieuChuyenKho.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkDieuChuyenKho_MouseDown);
         khohang.lnkXNDieuChuyenKho.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkXNDieuChuyenKho_MouseDown);
         khohang.lnkKiemKeKho.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkKiemKeKho_MouseDown);
         khohang.lnkInTemMaVach.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkInTemMaVach_MouseDown);
         khohang.lnkNhapSoDuTonKho.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkNhapSoDuTonKho_MouseDown);
         khohang.lnkPhieuXuatHuy.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkPhieuXuatHuy_MouseDown);
         khohang.lnkXNPhieuXuatHuy.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkXNPhieuXuatHuy_MouseDown);
         elementHost_KhoHang.Child = khohang;
     }
     catch
     {
     }
 }