Exemplo n.º 1
0
        private void btnSignUp_Click(object sender, RoutedEventArgs e)
        {
            // pressing the sign up button shows the sign up window and closes this window
            NewUserSignUp signUpWindow = new NewUserSignUp();

            signUpWindow.cooksList  = cooksList;
            signUpWindow.eatersList = eatersList;
            signUpWindow.Show();
            this.Close();
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.signUpScreen = ((Coursework2.NewUserSignUp)(target));
                return;

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

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

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

            #line 13 "..\..\NewUserSignUp.xaml"
                this.combobxUser.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.combobxUser_SelectionChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.combobxItemCook = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 6:
                this.combobxItemEater = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

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

            case 8:
                this.txtbxFirstName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.lblLstName = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.txtbxLastName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.lblEmail = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.txtbxEmail = ((System.Windows.Controls.TextBox)(target));
                return;

            case 13:
                this.lblAddressLn1 = ((System.Windows.Controls.Label)(target));
                return;

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

            case 15:
                this.lblAddressLn2 = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.txtbxAddressLn2 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 17:
                this.lblCity = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.txtbxCity = ((System.Windows.Controls.TextBox)(target));
                return;

            case 19:
                this.lblPostCode = ((System.Windows.Controls.Label)(target));
                return;

            case 20:
                this.txtbxPostCode = ((System.Windows.Controls.TextBox)(target));
                return;

            case 21:
                this.lblPswrd1 = ((System.Windows.Controls.Label)(target));
                return;

            case 22:
                this.pswrdbx1 = ((System.Windows.Controls.PasswordBox)(target));
                return;

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

            case 24:
                this.pswrdbx2 = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 25:
                this.lblFoodPrefs = ((System.Windows.Controls.Label)(target));
                return;

            case 26:
                this.chckbx0 = ((System.Windows.Controls.RadioButton)(target));

            #line 38 "..\..\NewUserSignUp.xaml"
                this.chckbx0.Checked += new System.Windows.RoutedEventHandler(this.food_Checked);

            #line default
            #line hidden
                return;

            case 27:
                this.chckbx1 = ((System.Windows.Controls.RadioButton)(target));

            #line 39 "..\..\NewUserSignUp.xaml"
                this.chckbx1.Checked += new System.Windows.RoutedEventHandler(this.food_Checked);

            #line default
            #line hidden
                return;

            case 28:
                this.chckbx2 = ((System.Windows.Controls.RadioButton)(target));

            #line 40 "..\..\NewUserSignUp.xaml"
                this.chckbx2.Checked += new System.Windows.RoutedEventHandler(this.food_Checked);

            #line default
            #line hidden
                return;

            case 29:
                this.chckbx3 = ((System.Windows.Controls.RadioButton)(target));

            #line 41 "..\..\NewUserSignUp.xaml"
                this.chckbx3.Checked += new System.Windows.RoutedEventHandler(this.food_Checked);

            #line default
            #line hidden
                return;

            case 30:
                this.txtbxOther = ((System.Windows.Controls.TextBox)(target));
                return;

            case 31:
                this.lblTransport = ((System.Windows.Controls.Label)(target));
                return;

            case 32:
                this.radBttn1 = ((System.Windows.Controls.RadioButton)(target));

            #line 45 "..\..\NewUserSignUp.xaml"
                this.radBttn1.Checked += new System.Windows.RoutedEventHandler(this.travel_Checked);

            #line default
            #line hidden
                return;

            case 33:
                this.radBttn2 = ((System.Windows.Controls.RadioButton)(target));

            #line 46 "..\..\NewUserSignUp.xaml"
                this.radBttn2.Checked += new System.Windows.RoutedEventHandler(this.travel_Checked);

            #line default
            #line hidden
                return;

            case 34:
                this.radBttn3 = ((System.Windows.Controls.RadioButton)(target));

            #line 47 "..\..\NewUserSignUp.xaml"
                this.radBttn3.Checked += new System.Windows.RoutedEventHandler(this.travel_Checked);

            #line default
            #line hidden
                return;

            case 35:
                this.radBttn4 = ((System.Windows.Controls.RadioButton)(target));

            #line 48 "..\..\NewUserSignUp.xaml"
                this.radBttn4.Checked += new System.Windows.RoutedEventHandler(this.travel_Checked);

            #line default
            #line hidden
                return;

            case 36:
                this.btnCookNext = ((System.Windows.Controls.Button)(target));

            #line 50 "..\..\NewUserSignUp.xaml"
                this.btnCookNext.Click += new System.Windows.RoutedEventHandler(this.btnCookNext_Click);

            #line default
            #line hidden
                return;

            case 37:
                this.btnEaterNext = ((System.Windows.Controls.Button)(target));

            #line 51 "..\..\NewUserSignUp.xaml"
                this.btnEaterNext.Click += new System.Windows.RoutedEventHandler(this.btnEaterNext_Click);

            #line default
            #line hidden
                return;

            case 38:
                this.btnCancel = ((System.Windows.Controls.Button)(target));

            #line 52 "..\..\NewUserSignUp.xaml"
                this.btnCancel.Click += new System.Windows.RoutedEventHandler(this.btnCancel_Click);

            #line default
            #line hidden
                return;

            case 39:
                this.lblReqFields = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }