Exemple #1
0
        private void AddPerson_MenuClick(object sender, RoutedEventArgs e)
        {
            AddEditDialog addEditDialog = new AddEditDialog(this);

            if (addEditDialog.ShowDialog() == true)
            {
                ReloadList();
            }
        }
Exemple #2
0
        private void LvPeople_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Person currPerson = lvPeople.SelectedItem as Person;

            if (currPerson == null)
            {
                return;
            }

            AddEditDialog addEditDialog = new AddEditDialog(this, currPerson);

            if (addEditDialog.ShowDialog() == true)
            {
                ReloadList();
            }
        }