private void AddPerson_MenuClick(object sender, RoutedEventArgs e) { AddEditDialog addEditDialog = new AddEditDialog(this); if (addEditDialog.ShowDialog() == true) { ReloadList(); } }
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(); } }