示例#1
0
 public AdminDBLayer()
 {
     adm = new Admin();
     pdl = new PersonDBLayer();
     obj.assign();
     con = obj.con;
 }
示例#2
0
        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);
            }
        }