private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            AddPerson add = new AddPerson();

            add.people = people;
            add.ShowDialog();
        }
Beispiel #2
0
        private void MenuItem_Click_1(object sender, RoutedEventArgs e)
        {
            AddPerson dialog = new AddPerson();

            if (dialog.ShowDialog() == true)
            {
                people.Add(dialog.person);
            }
        }