Example #1
0
        private void Persons_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Person     pi = (Person)((sender as ListView).SelectedItem);
            PersonEdit pe = new PersonEdit(pi);

            pe.ShowDialog();
        }
Example #2
0
        private void AddButton_Click(object sender, RoutedEventArgs e)
        {
            PersonEdit pe = new PersonEdit();

            pe.ShowDialog();
        }