Exemple #1
0
        private void RegisterButton_Click(object sender, RoutedEventArgs e)
        {
            RegisterWindow registrationWindow = new RegisterWindow();

            registrationWindow.Show();
            this.Close();
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.registerWindow = ((WpfAppEnglishGrammar.RegisterWindow)(target));

            #line 8 "..\..\RegisterWindow.xaml"
                this.registerWindow.Closing += new System.ComponentModel.CancelEventHandler(this.registerWindow_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.tbPersonInfoIconColumn = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 3:
                this.tbPersonInfoTextColumn = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 4:
                this.tbLoginRow = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 5:
                this.tbPasswordRow = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 6:
                this.tbPasswordConfirmRow = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 7:
                this.tbFirstNameRow = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 8:
                this.tbLastNameRow = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 9:
                this.tbButtonRow = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 10:
                this.registerButton = ((System.Windows.Controls.Button)(target));

            #line 65 "..\..\RegisterWindow.xaml"
                this.registerButton.Click += new System.Windows.RoutedEventHandler(this.registerButton_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.tbLogin = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.tbPassword = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 13:
                this.tbPasswordConfirm = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 14:
                this.tbFirstName = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 16:
                this.loginLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 17:
                this.passwordLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 18:
                this.passwordConfirmLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 19:
                this.firstNameLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 20:
                this.lastNameLabel = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }