public frmTrangChinh() { InitializeComponent(); ucTrangChinh trangchinh = new ucTrangChinh(); trangchinh.lnkNhomHangHoa.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkNhomHangHoa_MouseDown); trangchinh.lnkHangHoa.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkHangHoa_MouseDown); trangchinh.lnkKhachHang.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkKhachHang_MouseDown); trangchinh.lnkKhoHang.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkKhoHang_MouseDown); trangchinh.lnkNhanVien.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkNhanVien_MouseDown); trangchinh.lnkNhaCungCap.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkNhaCungCap_MouseDown); trangchinh.lnkKhoanMuc.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkKhoanMuc_MouseDown); trangchinh.lnkTienTe.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkTienTe_MouseDown); //trangchinh.lnkTaiKhoanKT.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkTaiKhoanKT_MouseDown); trangchinh.lnkDonDatHang.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkDonDatHang_MouseDown); trangchinh.lnkNhapKho.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkNhapKho_MouseDown); trangchinh.lnkKhachHangTraLai.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkKhachHangTraLai_MouseDown); trangchinh.lnkBanBuon.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkBanBuon_MouseDown); trangchinh.lnkBanLe.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkBanLe_MouseDown); trangchinh.lnkTraLaiNCC.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkTraLaiNCC_MouseDown); trangchinh.lnkPhieuThu.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkPhieuThu_MouseDown); trangchinh.lnkSoQuy.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkSoQuy_MouseDown); trangchinh.lnkPhieuChi.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkPhieuChi_MouseDown); trangchinh.lnkDieuChuyenKho.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkDieuChuyenKho_MouseDown); trangchinh.lnkXNDieuChuyenKho.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkXNDieuChuyenKho_MouseDown); trangchinh.lnkKiemKeKho.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkKiemKeKho_MouseDown); trangchinh.lnkInTemMaVach.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkInTemMaVach_MouseDown); trangchinh.lnkPhieuXuatHuy.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkPhieuXuatHuy_MouseDown); trangchinh.lnklbPhongBan.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnklbPhongBan_MouseDown); //trangchinh.lnkNhomTKKT.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkNhomTKKT_MouseDown); trangchinh.lnkDonViTinh.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkDonViTinh_MouseDown); trangchinh.lnkThue.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkThue_MouseDown); trangchinh.lnkLoaiHangHoa.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkLoaiHangHoa_MouseDown); trangchinh.BCTonKho.MouseDown += new System.Windows.Input.MouseButtonEventHandler(BCTonKho_MouseDown); trangchinh.BCDoanhThu.MouseDown += new System.Windows.Input.MouseButtonEventHandler(BCDoanhThu_MouseDown); trangchinh.BCXuatHang.MouseDown += new System.Windows.Input.MouseButtonEventHandler(BCXuatHang_MouseDown); trangchinh.BCNhapHang.MouseDown += new System.Windows.Input.MouseButtonEventHandler(BCNhapHang_MouseDown); trangchinh.BCCongNo.MouseDown += new System.Windows.Input.MouseButtonEventHandler(BCCongNo_MouseDown); trangchinh.lnkNhapSoDuTonKho.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkNhapSoDuTonKho_MouseDown); trangchinh.lnkXNPhieuXuatHuy.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkXNPhieuXuatHuy_MouseDown); trangchinh.lnkKetChuyenSoDu.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkKetChuyenSoDu_MouseDown); trangchinh.lnkSoDuDauKy.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkSoDuDauKy_MouseDown); elementHost_Trangchinh.Child = trangchinh; }