private void addNAF_Click(object sender, EventArgs e) { adress a = new adress(u.getUid(), this); a.Location = new Point(0, yA); adressP.Controls.Add(a); yA += 151; }
public void getAdresses() { List <AdressObj> aol = conn.getAdress(u.getUid()); int i; for (i = 0; i < aol.Count; i++) { adress a = new adress(aol[i].getPid(), aol[i].getPid(), aol[i].getAdress()); a.Location = new Point(0, yA); adressP.Controls.Add(a); yA += 151; } }