Exemple #1
0
        private void login_button_Click(object sender, RoutedEventArgs e)
        {
            ;

            if (storeservice.CheckLogin(gebruikersnaam_textbox.Text,
                                        wachtwoord_textbox.Text))
            {
                LoggedIn subWindow = new LoggedIn();
                subWindow.username_label.Content = gebruikersnaam_textbox.Text.ToString();
                subWindow.Show();

                this.Close();
            }
            else
            {
                // Fout wachtwoord
                MessageBox.Show("Deze gebruikersnaam wachtwoord combinatie bestaat niet.");
            }
        }
Exemple #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.LoggedIn1 = ((WpfApp1.LoggedIn)(target));

            #line 8 "..\..\LoggedIn.xaml"
                this.LoggedIn1.Loaded += new System.Windows.RoutedEventHandler(this.LoggedIn1_Loaded);

            #line default
            #line hidden
                return;

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

            #line 15 "..\..\LoggedIn.xaml"
                this.ComboBox.Initialized += new System.EventHandler(this.ComboBox_Initialized);

            #line default
            #line hidden
                return;

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

            case 4:
                this.AddToBasketButton = ((System.Windows.Controls.Button)(target));

            #line 18 "..\..\LoggedIn.xaml"
                this.AddToBasketButton.Click += new System.Windows.RoutedEventHandler(this.AddToBasketButton_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.Passdata = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:

            #line 20 "..\..\LoggedIn.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.basketDataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 8:
                this.basketIDColumn = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 9:
                this.clientIDColumn = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 10:
                this.productIDColumn = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 11:
                this.quantityColumn = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 12:
                this.ComboBoxDelete = ((System.Windows.Controls.ComboBox)(target));

            #line 30 "..\..\LoggedIn.xaml"
                this.ComboBoxDelete.Loaded += new System.Windows.RoutedEventHandler(this.ComboBoxDelete_Loaded);

            #line default
            #line hidden
                return;

            case 13:
                this.DeleteFromBasketButton = ((System.Windows.Controls.Button)(target));

            #line 31 "..\..\LoggedIn.xaml"
                this.DeleteFromBasketButton.Click += new System.Windows.RoutedEventHandler(this.DeleteFromBasketButton_Click);

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