void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.AboutProgramFrom1 = ((MainForm.AboutProgramFrom)(target)); return; case 2: this.textBlock = ((System.Windows.Controls.TextBlock)(target)); return; } this._contentLoaded = true; }
private void Button_StartGame_Copy_Click(object sender, RoutedEventArgs e) { AboutProgramFrom aboutProgramFrom = new AboutProgramFrom(); aboutProgramFrom.ShowDialog(); }