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 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 LoadTransactions(); } } }