private void ThemLop_Load(object sender, EventArgs e) { CSDL csdl = new CSDL(); if (string.IsNullOrEmpty(maLop)) { this.Text = "Thêm lớp mới"; } else { this.Text = "Cập nhật thông tin lớp"; DataRow dr = csdl.Select("select MaLop, TenLop from LOP where MaLop = '" + maLop + "'"); txtTenLop.Text = dr["TenLop"].ToString(); } }