Exemple #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.page_NewGameSave = ((Economy_Game.NewGameSave)(target));
                return;

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

            case 3:
                this.txtbx__CompanyName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.txtbx__Difficulty = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 5:
                this.lbl_NewGame_Name = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.lbl_NewGame_CompanyName = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.lbl_NewGame_Difficulty = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.btn_NewGame_Back = ((System.Windows.Controls.Button)(target));

            #line 28 "..\..\..\NewGameSave.xaml"
                this.btn_NewGame_Back.Click += new System.Windows.RoutedEventHandler(this.btn_NewGame_Back_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemple #2
0
        private void btn_NewGame_Click(object sender, RoutedEventArgs e)
        {
            NewGameSave newGameSave = new NewGameSave();

            this.NavigationService.Navigate(newGameSave);
        }