Esempio n. 1
0
        private void listGiangVien_MouseClick(object sender, MouseEventArgs e)
        {
            try
            {
                if (listGiangVien.SelectedIndex >= 0)
                {
                    giangVienUpdateDTO = GiangVienBUS.TimTheoMaGiangVien(Int32.Parse(listGiangVien.SelectedValue.ToString()));

                    txtTenGiangVienUpdate.Text = giangVienUpdateDTO.TenGiangVien;
                    txtSoDienThoaiUpdate.Text  = giangVienUpdateDTO.SoDienThoai;
                    txtDiaChiUpdate.Text       = giangVienUpdateDTO.DiaChi;
                    txtEmailUpdate.Text        = giangVienUpdateDTO.Email;
                }
            }
            catch (System.Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }