Example #1
0
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            resultsWorker.DoWork += new DoWorkEventHandler(resultsWorker_DoWork);
            resultsWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(resultsWorker_RunWorkerCompleted);

            ResultsServices cmd = new ResultsServices();
            this.cmbGPs.DataContext = cmd.GetAllGPs();

            this.LoadTeams();
            this.LoadOrders();

            this.timer.Start();
        }
Example #2
0
 /// <summary>
 /// Gets all thr Grand Prix in the system.
 /// </summary>
 /// <returns>A list of Grand Prix.</returns>
 public IList<GrandPrix> GetAllGPs()
 {
     ResultsServices resSrv = new ResultsServices();
     return resSrv.GetAllGPs();
 }