private void People_MouseDoubleClick(object sender, MouseButtonEventArgs e) { Person pc = (Person)((sender as ListBox).SelectedItem); EditPeople ep = new EditPeople(pc); ep.ShowDialog(); }
private void AddButton_Click(object sender, RoutedEventArgs e) { EditPeople ep = new EditPeople(); ep.ShowDialog(); }