示例#1
0
        private void listView1_MouseClick(object sender, MouseEventArgs e)
        {
            DAO_NhanVien dao = new DAO_NhanVien();

            tbHoTen.Text        = listView1.SelectedItems[0].SubItems[1].Text;
            tbDiaChi.Text       = listView1.SelectedItems[0].SubItems[2].Text;
            tbSDT.Text          = listView1.SelectedItems[0].SubItems[3].Text;
            dtpNgayBatDau.Text  = listView1.SelectedItems[0].SubItems[4].Text;
            dtpNgayKetThuc.Text = listView1.SelectedItems[0].SubItems[5].Text;
            long ID = Convert.ToInt32(dao.IDPhanQuyen(listView1.SelectedItems[0].SubItems[6].Text));

            cbbPhanQuyen.Text = ID.ToString();
        }