private void mnTonKho_Click(object sender, RoutedEventArgs e) { ucTonKho tonkho = new ucTonKho(); pnlUC.Children.Clear(); pnlUC.Children.Add(tonkho); }
private void BtnTonKho_ItemClick(object sender, ItemClickEventArgs e) { pnMain.Controls.Clear(); VaiTro_ChucNang pqtk = btnTonKho.Tag as VaiTro_ChucNang; ucTonKho tk = new ucTonKho(pqtk, username); tk.ThemNhatKyHeThong += ThemNhatKy_Main; tk.Dock = DockStyle.Fill; pnMain.Controls.Add(tk); }