private void Persons_MouseDoubleClick(object sender, MouseButtonEventArgs e) { Person pi = (Person)((sender as ListView).SelectedItem); PersonEdit pe = new PersonEdit(pi); pe.ShowDialog(); }
private void AddButton_Click(object sender, RoutedEventArgs e) { PersonEdit pe = new PersonEdit(); pe.ShowDialog(); }