private void wonTheGame() { QuestionAnswer.closeDatabaseConnection(); WonTheGame wonTheGameWindow = new WonTheGame(); wonTheGameWindow.Show(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.WonTheGameWindow = ((HPTriviaMaze.WonTheGame)(target)); return; case 2: this.imageYouWon = ((System.Windows.Controls.Image)(target)); return; case 3: this.txtYouWon = ((System.Windows.Controls.TextBlock)(target)); return; } this._contentLoaded = true; }