private void Names_MouseDoubleClick(object sender, MouseButtonEventArgs e) { Person ni = (Person)((sender as ListView).SelectedItem); NamesEdit ne = new NamesEdit(ni); ne.ShowDialog(); }
private void AddButton_Click(object sender, RoutedEventArgs e) { NamesEdit ue = new NamesEdit(); ue.ShowDialog(); }