Esempio n. 1
0
 private void UpdateCmbAddress()
 {
     cmbAddress.DataSource    = null;
     cmbAddress.ValueMember   = nameof(Address.IdAddress);
     cmbAddress.DisplayMember = nameof(Address.SAddress);
     cmbAddress.DataSource    = AddressDAO.GetAddress(user.IdUser);
 }
Esempio n. 2
0
 private void nudAddressID_ValueChanged(object sender, EventArgs e)
 {
     txtUpdateAddress.Text = AddressDAO.GetAddress((int)nudAddressID.Value, user.IdUser).SAddress;
 }