public PacerDataMgmt() { InitializeComponent(); _courts = CourtService.GetAll(); cboCourt.ItemsSource = _courts; grdCourts.ItemsSource = _courts; List <PacerFileFormat> _formats = PacerFileFormatService.GetAll(); cboECFVersion.ItemsSource = _formats; rdpEndDate.SelectedDate = DateTime.Now.AddDays(-1); rdpStartDate.SelectedDate = DateTime.Now.AddMonths(-1); _asyncWorker = new BackgroundWorker(); _asyncWorker.WorkerReportsProgress = true; _asyncWorker.WorkerSupportsCancellation = true; _asyncWorker.ProgressChanged += new ProgressChangedEventHandler(bwAsync_ProgressChanged); _asyncWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bwAsync_RunWorkerCompleted); _asyncWorker.DoWork += new DoWorkEventHandler(bwAsync_DoWork); _asyncZipStatusWorker = new BackgroundWorker(); _asyncZipStatusWorker.WorkerReportsProgress = true; _asyncZipStatusWorker.WorkerSupportsCancellation = true; _asyncZipStatusWorker.ProgressChanged += new ProgressChangedEventHandler(bwAsyncZip_ProgressChanged); _asyncZipStatusWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bwAsyncZip_RunWorkerCompleted); _asyncZipStatusWorker.DoWork += new DoWorkEventHandler(bwAsyncZip_DoWork); }
public MainWindow() { InitializeComponent(); _courts = CourtService.GetAll(); cboCourt.ItemsSource = _courts; }
public void GetAllTest() { int total; var all = courtService.GetAll(1, 10, out total); Assert.AreEqual(total, all.Count()); Assert.AreEqual(total, 1); }
private void LoadCourts() { _courts = CourtService.GetAll(); cboCourt.ItemsSource = null; cboCourt.Items.Clear(); cboCourt.ItemsSource = _courts; grdCourts.ItemsSource = null; grdCourts.Items.Clear(); grdCourts.ItemsSource = _courts; }
private void LoadCourts() { _blnLoadingCourts = true; _courts = CourtService.GetAll(); cboCourt.ItemsSource = null; cboCourt.Items.Clear(); cboCourt.ItemsSource = _courts; grdCourts.ItemsSource = null; grdCourts.Items.Clear(); grdCourts.ItemsSource = _courts; _blnLoadingCourts = false; }
public MainWindow() { List <State> _states; List <Court> _courts; InitializeComponent(); if (ConfigurationManager.AppSettings.Get("Debug") == "true") { MessageBox.Show("I'm here"); } //set the Pacer Management Window rtPacerDataMgmt.Content = new PacerDataMgmt(); _courts = CourtService.GetAll(); cboCourt.ItemsSource = _courts; // export filter criteria //_courts.Insert(0, new Court(){CourtName="[Select...]"}); cboCourtExportCriteria.ItemsSource = _courts; _states = StateService.GetActive(); //_states.Insert(0, new State() { StateCode = "[Select...]" }); cboState.ItemsSource = _states; //LoadAndProcessRemoveEmails(); //if (DateTime.Now > DateTime.Parse("02/01/12")) //{ // MessageBox.Show("Your system has outstanding invoices due. Please contact Metamorpho-Sys for scheduling payment at (503) 901-5395"); // if (DateTime.Now > DateTime.Parse("04/01/12")) // { // MessageBox.Show("Your system has outstanding invoices due. Please contact Metamorpho-Sys for scheduling payment at (503) 901-5395. Applciation will now close"); // this.Close(); // } //} List <Dealer> _dealers = DealerService.GetFiltered(string.Empty, true); GridViewDealers.ItemsSource = _dealers; //_dealers.Insert(0, new Dealer() { CompanyName = "[Select...]" }); cboDealerExportCriteria.ItemsSource = _dealers; }