Beispiel #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.progress = ((My_Game.ProgressUserControl)(target));
                return;

            case 2:
                this.progressStackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((My_Game.MainWindow)(target));

            #line 10 "..\..\MainWindow.xaml"
                this.mainWindow.StateChanged += new System.EventHandler(this.MetroWindow_StateChanged);

            #line default
            #line hidden

            #line 11 "..\..\MainWindow.xaml"
                this.mainWindow.SizeChanged += new System.Windows.SizeChangedEventHandler(this.mainWindow_SizeChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.loginButton = ((System.Windows.Controls.Button)(target));

            #line 21 "..\..\MainWindow.xaml"
                this.loginButton.Click += new System.Windows.RoutedEventHandler(this.LoginButton_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.EllipseInLoginButton = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 4:
                this.textBlockOnLabelOnButton = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.FlyoutSignInUp = ((MahApps.Metro.Controls.Flyout)(target));
                return;

            case 6:
                this.TabCotrol = ((System.Windows.Controls.TabControl)(target));
                return;

            case 7:
                this.SignInTabItem = ((System.Windows.Controls.TabItem)(target));
                return;

            case 8:
                this.SignInLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.SignInTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.SignInPasswordBox = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 11:
                this.SignInButton = ((System.Windows.Controls.Button)(target));
                return;

            case 12:
                this.LabelSignInError = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.SignUpTabItem = ((System.Windows.Controls.TabItem)(target));
                return;

            case 14:
                this.SignUpLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.SignUpTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 16:
                this.SignUpPasswordBox = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 17:
                this.SignUpButton = ((System.Windows.Controls.Button)(target));
                return;

            case 18:
                this.LabelSignUpError = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.flyoutAccountInfo = ((MahApps.Metro.Controls.Flyout)(target));

            #line 83 "..\..\MainWindow.xaml"
                this.flyoutAccountInfo.IsVisibleChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.flyoutAccountInfo_IsVisibleChanged);

            #line default
            #line hidden
                return;

            case 20:
                this.flyoutAccountInfoHeaderTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 21:
                this.stackPanelWinLose = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 22:
                this.winCount = ((System.Windows.Controls.Label)(target));
                return;

            case 23:
                this.loseCount = ((System.Windows.Controls.Label)(target));
                return;

            case 24:
                this.Balance = ((System.Windows.Controls.Label)(target));
                return;

            case 25:
                this.accountPicture = ((System.Windows.Controls.Image)(target));

            #line 105 "..\..\MainWindow.xaml"
                this.accountPicture.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.accountPicture_MouseDown);

            #line default
            #line hidden
                return;

            case 26:
                this.textBoxName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 27:
                this.textBoxSurname = ((System.Windows.Controls.TextBox)(target));
                return;

            case 28:
                this.textBoxPatronymic = ((System.Windows.Controls.TextBox)(target));
                return;

            case 29:
                this.textBoxEmail = ((System.Windows.Controls.TextBox)(target));
                return;

            case 30:
                this.buttonSaveChanges = ((System.Windows.Controls.Button)(target));

            #line 110 "..\..\MainWindow.xaml"
                this.buttonSaveChanges.Click += new System.Windows.RoutedEventHandler(this.buttonSaveChanges_Click);

            #line default
            #line hidden
                return;

            case 31:
                this.gridOnMain = ((System.Windows.Controls.Grid)(target));
                return;

            case 32:
                this.backgroundImage = ((System.Windows.Controls.Image)(target));
                return;

            case 33:
                this.gameBackground = ((System.Windows.Controls.Image)(target));
                return;

            case 34:
                this.labelNewGame = ((System.Windows.Controls.Label)(target));
                return;

            case 35:
                this.labelExit = ((System.Windows.Controls.Label)(target));
                return;

            case 36:
                this.questionAnswer = ((My_Game.UserControl1)(target));
                return;

            case 37:
                this.progressBar = ((My_Game.ProgressUserControl)(target));
                return;
            }
            this._contentLoaded = true;
        }