void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ScoreInput1 = ((Asteroids.ScoreInput)(target)); #line 8 "..\..\ScoreInput.xaml" this.ScoreInput1.Closing += new System.ComponentModel.CancelEventHandler(this.ScoreInput1_Closing); #line default #line hidden return; case 2: this.textBox = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.DoneButton = ((System.Windows.Controls.Button)(target)); #line 11 "..\..\ScoreInput.xaml" this.DoneButton.Click += new System.Windows.RoutedEventHandler(this.DoneButton_Click); #line default #line hidden return; } this._contentLoaded = true; }
protected virtual void OnGameOver(EventArgs e) { //Window ScoreBox = new Window(); //TextBox t = new TextBox(); ScoreInput wind = new ScoreInput(); wind.ShowDialog(); NameGotten = wind.GetName(); //MessageBox.Show("Game over"); // ScoreBox.ShowDialog(); EventHandler handler = GameOver; if (handler != null) { handler(this, e); } }