void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Welcome_ = ((Gra.EnterNameBox)(target));
                return;

            case 2:
                this.Input = ((System.Windows.Controls.TextBox)(target));
                return;

            case 3:

            #line 17 "..\..\EnterNameBox.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemple #2
0
 // opens a welcoming window where you can give name to the hero
 void EnterName()
 {
     IsEnabled = false;
     EnterNameBox entername = new EnterNameBox(Hero, this);
 }