Exemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Win_KundenErstellen = ((Bank_WPF.Kunden_Erstellen)(target));
                return;

            case 2:
                this.txtb_KundeVorname = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 4:
                this.Chkb_Bonität = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 5:
                this.btn_KundeErstellen = ((System.Windows.Controls.Button)(target));

            #line 13 "..\..\Kunden_Erstellen.xaml"
                this.btn_KundeErstellen.Click += new System.Windows.RoutedEventHandler(this.Button_Clicked_KundeErstellen);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        private void Button_Click_KundeErstellen(object sender, RoutedEventArgs e)
        {
            Window Win_KundeErstellen = new Kunden_Erstellen(false, Sparbank.Ber[List_Berater.SelectedIndex]);

            Win_KundeErstellen.ShowDialog();
            List_Kunden.Items.Refresh();
        }