コード例 #1
0
        private void mnTonKho_Click(object sender, RoutedEventArgs e)
        {
            ucTonKho tonkho = new ucTonKho();

            pnlUC.Children.Clear();
            pnlUC.Children.Add(tonkho);
        }
コード例 #2
0
        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);
        }