public frmNghiepVu() { InitializeComponent(); panel2.Width = Screen.PrimaryScreen.WorkingArea.Width; panel2.Height = Screen.PrimaryScreen.WorkingArea.Height; try { ucNghiepVu nghiepvu = new ucNghiepVu(); nghiepvu.lnkPhieuThu.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkPhieuThu_MouseDown); nghiepvu.lnkPhieuChi.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkPhieuChi_MouseDown); nghiepvu.lnkSoQuy.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkSoQuy_MouseDown); nghiepvu.lnkBanBuon.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkBanBuon_MouseDown); nghiepvu.lnkBanLe.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkBanLe_MouseDown); nghiepvu.lnkTraLaiNCC.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkTraLaiNCC_MouseDown); nghiepvu.lnkKhachHangTraLai.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkKhachHangTraLai_MouseDown); nghiepvu.lnkDonDatHang.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkDonDatHang_MouseDown); nghiepvu.lnkNhapKho.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkNhapKho_MouseDown); nghiepvu.lnkSoDuSoQuy.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkSoDuSoQuy_MouseDown); nghiepvu.lnkKetChuyenSoDu.MouseDown += new System.Windows.Input.MouseButtonEventHandler(lnkKetChuyenSoDu_MouseDown); elementHost_NghiepVu.Child = nghiepvu; } catch { } }