void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Win_KontoErstellen = ((Bank_WPF.Konto_Erstellen)(target)); return; case 2: this.lbl_KontoerstellenFrage = ((System.Windows.Controls.Label)(target)); return; case 3: this.btn_KontoNichtErstellen = ((System.Windows.Controls.Button)(target)); #line 11 "..\..\Konto_Erstellen.xaml" this.btn_KontoNichtErstellen.Click += new System.Windows.RoutedEventHandler(this.Button_Click_KontoNichtErstellen); #line default #line hidden return; case 4: this.btn_KontoErstellen = ((System.Windows.Controls.Button)(target)); #line 12 "..\..\Konto_Erstellen.xaml" this.btn_KontoErstellen.Click += new System.Windows.RoutedEventHandler(this.Button_Click_KontoErstellen); #line default #line hidden return; } this._contentLoaded = true; }
// Methoden für Konto private void Button_Click_KontoErstellen(object sender, RoutedEventArgs e) { if (istGK == true) { Window Win_KontenErstellen = new Konto_Erstellen(gkundenInstanz); Win_KontenErstellen.ShowDialog(); List_Konten.Items.Refresh(); } else { Window Win_KontenErstellen = new Konto_Erstellen(kundenInstanz); Win_KontenErstellen.ShowDialog(); List_Konten.Items.Refresh(); } }