コード例 #1
0
        private void btnRegister_Click(object sender, RoutedEventArgs e)
        {
            //if past all verifications and steps.

            if (uDAO.Registration(TOUser))
            {
                ACTHouseSelection hs = new ACTHouseSelection(TOUser);
                hs.ShowDialog();
                ACTMessages message = new ACTMessages(TOUser, "eBuy!", "Cadastro realizado com sucesso!", 1);
                message.ShowDialog();
                CanvasStepOne.Visibility   = Visibility.Visible;
                CanvasStepTwo.Visibility   = Visibility.Hidden;
                CanvasStepThree.Visibility = Visibility.Hidden;
                txtUser.Text                   = "";
                txtEmail.Text                  = "";
                psbPassword.Password           = "";
                psbConfirmPassword.Password    = "";
                txtUser.BorderBrush            = Brushes.White;
                txtEmail.BorderBrush           = Brushes.White;
                psbPassword.BorderBrush        = Brushes.White;
                psbConfirmPassword.BorderBrush = Brushes.White;
                lblVerifyPassword.Visibility   = Visibility.Hidden;
                lblSteps.Content               = "Passo: 1";
                txtUser.Focus();
            }
            else
            {
                //database error.
                ACTMessages message = new ACTMessages(TOUser, "eBuy", "Algo errado aconteceu durante o cadastro.", 3);
                message.ShowDialog();
            }
        }
コード例 #2
0
ファイル: ACTHouseSelection.g.i.cs プロジェクト: Pelicer/ebuy
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.HouseSelection = ((eBuy.View.User.Registration.ACTHouseSelection)(target));
                return;

            case 2:
                this.lblHouseSelection = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.lblMessage = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.imgS = ((System.Windows.Controls.Image)(target));

            #line 22 "..\..\..\..\..\View\User\Registration\ACTHouseSelection.xaml"
                this.imgS.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.imgS_MouseDown);

            #line default
            #line hidden
                return;

            case 5:
                this.imgG = ((System.Windows.Controls.Image)(target));

            #line 23 "..\..\..\..\..\View\User\Registration\ACTHouseSelection.xaml"
                this.imgG.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.imgG_MouseDown);

            #line default
            #line hidden
                return;

            case 6:
                this.imgR = ((System.Windows.Controls.Image)(target));

            #line 24 "..\..\..\..\..\View\User\Registration\ACTHouseSelection.xaml"
                this.imgR.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.imgR_MouseDown);

            #line default
            #line hidden
                return;

            case 7:
                this.imgH = ((System.Windows.Controls.Image)(target));

            #line 25 "..\..\..\..\..\View\User\Registration\ACTHouseSelection.xaml"
                this.imgH.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.imgH_MouseDown);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }