Ejemplo n.º 1
0
 public frmDanhMuc()
 {
     InitializeComponent();
     try
     {
         ucDanhMuc danhmuc = new ucDanhMuc();
         danhmuc.lnkNhomHangHoa.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkNhomHangHoa_MouseDown);
         danhmuc.lnkHangHoa.MouseDown     += new System.Windows.Input.MouseButtonEventHandler(lnkHangHoa_MouseDown);
         danhmuc.lnkKhoHang.MouseDown     += new System.Windows.Input.MouseButtonEventHandler(lnkKhoHang_MouseDown);
         danhmuc.lnkKhachHang.MouseDown   += new System.Windows.Input.MouseButtonEventHandler(lnkKhachHang_MouseDown);
         danhmuc.lnkNhanVien.MouseDown    += new System.Windows.Input.MouseButtonEventHandler(lnkNhanVien_MouseDown);
         danhmuc.lnkNhaCungCap.MouseDown  += new System.Windows.Input.MouseButtonEventHandler(lnkNhaCungCap_MouseDown);
         danhmuc.lnkKhoanMuc.MouseDown    += new System.Windows.Input.MouseButtonEventHandler(lnkKhoanMuc_MouseDown);
         danhmuc.lnkTienTe.MouseDown      += new System.Windows.Input.MouseButtonEventHandler(lnkTienTe_MouseDown);
         danhmuc.lnkTaiKhoanKT.MouseDown  += new System.Windows.Input.MouseButtonEventHandler(lnkTaiKhoanKT_MouseDown);
         danhmuc.lnkLoaiHangHoa.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkLoaiHangHoa_MouseDown);
         danhmuc.lnkDonViTinh.MouseDown   += new System.Windows.Input.MouseButtonEventHandler(lnkDonViTinh_MouseDown);
         danhmuc.lnkThue.MouseDown        += new System.Windows.Input.MouseButtonEventHandler(lnkThue_MouseDown);
         danhmuc.lnkNhomTKKT.MouseDown    += new System.Windows.Input.MouseButtonEventHandler(lnkNhomTKKT_MouseDown);
         danhmuc.lnkcongty.MouseDown      += new System.Windows.Input.MouseButtonEventHandler(lnkcongty_MouseDown);
         danhmuc.lnkgoihang.MouseDown     += new System.Windows.Input.MouseButtonEventHandler(lnkgoihang_MouseDown);
         //danhmuc.lnkquydoi.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkquydoi_MouseDown);
         elementHost_DanhMuc.Child = danhmuc;
     }
     catch
     {
     }
 }
Ejemplo n.º 2
0
 public frmDanhMuc()
 {
     InitializeComponent();
     try
     {
         ucDanhMuc danhmuc = new ucDanhMuc();
         danhmuc.lnkNhomHangHoa.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkNhomHangHoa_MouseDown);
         danhmuc.lnkHangHoa.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkHangHoa_MouseDown);
         danhmuc.lnkKhoHang.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkKhoHang_MouseDown);
         danhmuc.lnkKhachHang.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkKhachHang_MouseDown);
         danhmuc.lnkNhanVien.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkNhanVien_MouseDown);
         danhmuc.lnkNhaCungCap.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkNhaCungCap_MouseDown);
         danhmuc.lnkKhoanMuc.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkKhoanMuc_MouseDown);
         danhmuc.lnkTienTe.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkTienTe_MouseDown);
         danhmuc.lnkTaiKhoanKT.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkTaiKhoanKT_MouseDown);
         danhmuc.lnkLoaiHangHoa.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkLoaiHangHoa_MouseDown);
         danhmuc.lnkDonViTinh.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkDonViTinh_MouseDown);
         danhmuc.lnkThue.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkThue_MouseDown);
         danhmuc.lnkNhomTKKT.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkNhomTKKT_MouseDown);
         danhmuc.lnkcongty.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkcongty_MouseDown);
         danhmuc.lnkgoihang.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkgoihang_MouseDown);
         //danhmuc.lnkquydoi.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkquydoi_MouseDown);
         elementHost_DanhMuc.Child = danhmuc;
     }
     catch
     {
     }
 }