private void newUserButton_Click(object sender, RoutedEventArgs e)
        {
            NewPersonWindow newPerson = new NewPersonWindow();
            var res = newPerson.ShowDialog();

            if (res.HasValue && res.Value)
            {
                searchText.Text = "";

                searchResultList.ItemsSource = AppData.PersonRepository.GetItems().ToList();
            }
        }
 private void Button_Click_1(object sender, RoutedEventArgs e)
 {
     var pE = new NewPersonWindow(DataContext as Person);
     var res = pE.ShowDialog();
 }