private void btnAdd_Click(object sender, RoutedEventArgs e) { AddEditDialog dlg = new AddEditDialog(this); if (dlg.ShowDialog() == true) { RefreshList(); MessageBox.Show("Success!"); } }
private void lvTrips_MouseDoubleClick(object sender, MouseButtonEventArgs e) { Trip currTrip = lvTrips.SelectedItem as Trip; if (currTrip == null) { return; } AddEditDialog dlg = new AddEditDialog(this, currTrip); if (dlg.ShowDialog() == true) { RefreshList(); MessageBox.Show("Success!"); } }