public void UpdateInfo() { nBox.Text = cl.Name; bBox.Text = cl.BirthDate.ToString("dd/MM/yyyy"); eBox.Text = cl.Email; pBox.Text = cl.Phone; aBox.Text = cl.Address; accList.ItemsSource = null; accList.ItemsSource = acc.ClAcc(cl.Id); }
private void SearchButton_Click(object sender, RoutedEventArgs e)// { int accId; if (int.TryParse(SearchAccBox.Text, out accId)) { accountList.ItemsSource = acc.ClAcc(accId); } else { MessageBox.Show("Please, enter correct client id"); } }