Beispiel #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.GameRulesForm1 = ((MainForm.GameRulesForm)(target));
         return;
     }
     this._contentLoaded = true;
 }
        private void Button__Click(object sender, RoutedEventArgs e)
        {
            GameRulesForm gameRulesForm = new GameRulesForm();

            gameRulesForm.ShowDialog();
        }