private void LoadTransactions() { if ((Court)cboCourt.SelectedValue != null) { GridViewImportTransactions.ItemsSource = PacerImportTransactionService.GetForCourt(((Court)cboCourt.SelectedValue).ID); } }
private void btnDelete_Click(object sender, RoutedEventArgs e) { RadButton _button = (RadButton)sender; PacerImportTransaction _transaction = ((PacerImportTransaction)_button.DataContext); //Dealer _selectedDealer = DealerService.GetByID(ID); if (MessageBox.Show("Delete the transaction from " + _transaction.DownloadTimeStamp.ToString() + " and all record of imported cases from the database?", "Delete Transaction?", MessageBoxButton.YesNo) == MessageBoxResult.Yes) { PacerImportTransactionService.Delete(_transaction); LoadTransactions(); } }
private void btnDownLoad_Click(object sender, RoutedEventArgs e) { if (cboCourt.SelectedIndex == -1) { MessageBox.Show("Please Select a Court!"); return; } else { DownloadDataWindow _downloadDataWindow = new DownloadDataWindow((Court)cboCourt.SelectedValue); _downloadDataWindow.ShowDialog(); if (_downloadDataWindow.DialogResult == true) { //reload the datagrid GridViewImportTransactions.ItemsSource = PacerImportTransactionService.GetForCourt(((Court)cboCourt.SelectedValue).ID); } } }
private void cboCourt_SelectionChanged(object sender, SelectionChangedEventArgs e) { GridViewImportTransactions.ItemsSource = PacerImportTransactionService.GetForCourt(((Court)cboCourt.SelectedValue).ID); }