Example #1
0
        private void People_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Person     p  = (Person)((ListBox)sender).SelectedItem;
            PersonEdit pe = new PersonEdit(p);

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

            pe.ShowDialog();
        }