private void miAdd_Click(object sender, RoutedEventArgs e) { AddEditDlg dlg = new AddEditDlg(null); if (dlg.ShowDialog() == true) { RefreshList(); } }
private void lvFlights_MouseDoubleClick(object sender, MouseButtonEventArgs e) { Flight f = (Flight)lvFlights.SelectedItem; if (f == null) { return; } AddEditDlg dlg = new AddEditDlg(f); if (dlg.ShowDialog() == true) { RefreshList(); } }