public MainWindow() { _player = new MusicPlayer(); QuizDB = new QuizDB(); getQuestionWorker.DoWork += new DoWorkEventHandler(getQuestionWorker_DoWork); getQuestionWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(getQuestionWorker_RunWorkerCompleted); this.DataContext = _currentQuestion; InitializeComponent(); ScoreTB.DataContext = _score; }
public MainWindow() { _player = new MusicPlayer(); QuizDB = new QuizDB(); getQuestionWorker.DoWork += new DoWorkEventHandler(getQuestionWorker_DoWork); getQuestionWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(getQuestionWorker_RunWorkerCompleted); this.DataContext = _currentQuestion; InitializeComponent(); ScoreTB.DataContext = _score; }