private void miAdd_Click(object sender, RoutedEventArgs e) { AddEditDialog dlg = new AddEditDialog(this); if (dlg.ShowDialog() == true) { refreshList(); MessageBox.Show("Success!"); } }
private void lbPeople_MouseDoubleClick(object sender, MouseButtonEventArgs e) { Cars currCar = lbCars.SelectedItem as Cars; if (currCar == null) { return; } AddEditDialog dlg = new AddEditDialog(this, currCar); if (dlg.ShowDialog() == true) { refreshList(); MessageBox.Show("Success!"); } }
private void miEdit_Click(object sender, RoutedEventArgs e) { Cars currCar = lbCars.SelectedItem as Cars; if (currCar == null) { return; } AddEditDialog dlg = new AddEditDialog(this, currCar); if (dlg.ShowDialog() == true) { refreshList(); MessageBox.Show("Success!"); } }