MemberAdminWindow: Small code cleanup

This commit is contained in:
2023-09-01 17:02:29 +02:00
parent 33d763d968
commit e656bde54d
3 changed files with 12 additions and 10 deletions

@ -348,7 +348,7 @@ namespace Elwig.Windows {
m.PostalDestId = ((AT_PlzDest)OrtInput.SelectedItem).Id;
m.Address = AddressInput.Text;
m.Email = (EmailInput.Text == "") ? null : EmailInput.Text;
m.Email = (EmailAddressInput.Text == "") ? null : EmailAddressInput.Text;
m.Iban = (IbanInput.Text == "") ? null : IbanInput.Text.Replace(" ", "");
m.Bic = (BicInput.Text == "") ? null : BicInput.Text;
@ -474,7 +474,7 @@ namespace Elwig.Windows {
OrtInput.SelectedItem = null;
}
EmailInput.Text = m.Email;
EmailAddressInput.Text = m.Email;
var phoneNrs = m.TelephoneNumbers.OrderBy(p => p.Nr).ToList();
for (int i = 0; i < PhoneNrInputs.Length; i++) {
if (i < phoneNrs.Count) {