public AdminDBLayer() { adm = new Admin(); pdl = new PersonDBLayer(); obj.assign(); con = obj.con; }
void LoadPersonData() { try { pdb = new PersonDBLayer(); pdb.LoadPersonData(pID); txtEmailAcc.Text = pdb.perObj.getEmail(); txtNameAcc.Text = pdb.perObj.getName(); txtPasswordAcc.Text = pdb.perObj.getPswd(); txtCountryAcc.Text = pdb.perObj.getCountry(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }