예제 #1
0
        private void AddPerson_MenuClick(object sender, RoutedEventArgs e)
        {
            AddEditDialog addEditDialog = new AddEditDialog(this);

            if (addEditDialog.ShowDialog() == true)
            {
                ReloadList();
            }
        }
예제 #2
0
        private void LvPeople_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Person currPerson = lvPeople.SelectedItem as Person;

            if (currPerson == null)
            {
                return;
            }

            AddEditDialog addEditDialog = new AddEditDialog(this, currPerson);

            if (addEditDialog.ShowDialog() == true)
            {
                ReloadList();
            }
        }