Exemplo n.º 1
0
        private void btnThem_Click(object sender, EventArgs e)
        {
            Form fr = new frmXuLyNhomQuyen();

            fr.ShowDialog();
            Tree();
            if (tkt != null)
            {
                cbbTenNhomQuyen.Text = tkt.TenNhomQuyen;
            }
            Entities.ChiTietQuyen[] ctqt = LayChiTietQuyen(NQ);
            if (ctqt != null)
            {
                dataGridView1.DataSource = ctqt;
                fixdgv();
            }
            else
            {
                dataGridView1.DataSource = new Entities.ChiTietQuyen[0];
                fixdgv();
            }
            dataGridView1.Refresh();
        }
Exemplo n.º 2
0
 private void btnThem_Click(object sender, EventArgs e)
 {
     Form fr = new frmXuLyNhomQuyen();
     fr.ShowDialog();
     Tree();
     if (tkt != null)
         cbbTenNhomQuyen.Text = tkt.TenNhomQuyen;
     Entities.ChiTietQuyen[] ctqt = LayChiTietQuyen(NQ);
     if (ctqt != null)
     {
         dataGridView1.DataSource = ctqt;
         fixdgv();
     }
     else
     {
         dataGridView1.DataSource = new Entities.ChiTietQuyen[0];
         fixdgv();
     }
     dataGridView1.Refresh();
 }