private void People_MouseDoubleClick(object sender, MouseButtonEventArgs e) { Person p = (Person)((ListBox)sender).SelectedItem; PersonEdit pe = new PersonEdit(p); pe.ShowDialog(); }
private void AddButton_Click(object sender, RoutedEventArgs e) { PersonEdit pe = new PersonEdit(); pe.ShowDialog(); }