void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Window = ((Biblioteczka.MainWindow)(target)); #line 9 "..\..\MainWindow.xaml" this.Window.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.authorTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.tittleTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.genreComboBox = ((System.Windows.Controls.ComboBox)(target)); return; case 5: this.haveCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; case 6: this.wantReadCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; case 7: this.addButton = ((System.Windows.Controls.Button)(target)); #line 42 "..\..\MainWindow.xaml" this.addButton.Click += new System.Windows.RoutedEventHandler(this.addButton_Click); #line default #line hidden return; case 8: this.editButton = ((System.Windows.Controls.Button)(target)); #line 43 "..\..\MainWindow.xaml" this.editButton.Click += new System.Windows.RoutedEventHandler(this.editButton_Click); #line default #line hidden return; case 9: this.deleteButton = ((System.Windows.Controls.Button)(target)); #line 45 "..\..\MainWindow.xaml" this.deleteButton.Click += new System.Windows.RoutedEventHandler(this.deleteButton_Click); #line default #line hidden return; case 10: this.booksDataGrid = ((System.Windows.Controls.DataGrid)(target)); #line 47 "..\..\MainWindow.xaml" this.booksDataGrid.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.booksDataGrid_SelectionChanged); #line default #line hidden return; case 11: this.keyComboBox = ((System.Windows.Controls.ComboBox)(target)); return; case 12: this.searchTextBox = ((System.Windows.Controls.TextBox)(target)); #line 52 "..\..\MainWindow.xaml" this.searchTextBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.searchTextBox_TextChanged); #line default #line hidden return; case 13: this.showAllButton = ((System.Windows.Controls.Button)(target)); #line 53 "..\..\MainWindow.xaml" this.showAllButton.Click += new System.Windows.RoutedEventHandler(this.showAllButton_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Biblioteczka = ((Biblioteczka.MainWindow)(target)); return; case 2: this.buttonBazaKsiazek = ((System.Windows.Controls.Button)(target)); #line 28 "..\..\MainWindow.xaml" this.buttonBazaKsiazek.Click += new System.Windows.RoutedEventHandler(this.buttonBazaKsiazek_Click); #line default #line hidden return; case 3: #line 33 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 4: this.deleteBookButton = ((System.Windows.Controls.Button)(target)); #line 38 "..\..\MainWindow.xaml" this.deleteBookButton.Click += new System.Windows.RoutedEventHandler(this.deleteBookButton_Click_1); #line default #line hidden return; case 5: this.bazaKsiazekButton = ((System.Windows.Controls.Button)(target)); #line 43 "..\..\MainWindow.xaml" this.bazaKsiazekButton.Click += new System.Windows.RoutedEventHandler(this.bazaKsiazekButton_Click); #line default #line hidden return; case 6: #line 49 "..\..\MainWindow.xaml" ((System.Windows.Controls.Grid)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseLeftButtonDown); #line default #line hidden return; case 7: #line 57 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1); #line default #line hidden return; } this._contentLoaded = true; }