void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.MusicStoreMainWindow = ((MusicStore.MainWindow)(target)); #line 9 "..\..\MainWindow.xaml" this.MusicStoreMainWindow.Closed += new System.EventHandler(this.MusicStoreMainWindow_Closed); #line default #line hidden return; case 2: this.MusicStoreInstrumentsGrid = ((System.Windows.Controls.DataGrid)(target)); #line 19 "..\..\MainWindow.xaml" this.MusicStoreInstrumentsGrid.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.MusicStoreInstrumentsGrid_PreviewKeyDown); #line default #line hidden return; case 3: this.menu = ((System.Windows.Controls.Menu)(target)); return; case 4: this.MusicStoreShowPianoCheckbox = ((System.Windows.Controls.CheckBox)(target)); #line 22 "..\..\MainWindow.xaml" this.MusicStoreShowPianoCheckbox.Click += new System.Windows.RoutedEventHandler(this.MusicStoreShowPianoCheckbox_Click); #line default #line hidden return; case 5: this.MusicStoreShowGuitarCheckbox = ((System.Windows.Controls.CheckBox)(target)); #line 23 "..\..\MainWindow.xaml" this.MusicStoreShowGuitarCheckbox.Click += new System.Windows.RoutedEventHandler(this.MusicStoreShowGuitarCheckbox_Click); #line default #line hidden return; case 6: this.addPianoButton = ((System.Windows.Controls.MenuItem)(target)); #line 26 "..\..\MainWindow.xaml" this.addPianoButton.Click += new System.Windows.RoutedEventHandler(this.addPianoButton_Click); #line default #line hidden return; case 7: this.addGuitarButton = ((System.Windows.Controls.MenuItem)(target)); #line 27 "..\..\MainWindow.xaml" this.addGuitarButton.Click += new System.Windows.RoutedEventHandler(this.addGuitarButton_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.MusicStoreMainWindow = ((MusicStore.MainWindow)(target)); #line 9 "..\..\MainWindow.xaml" this.MusicStoreMainWindow.Closed += new System.EventHandler(this.MusicStoreMainWindow_Closed); #line default #line hidden return; case 2: this.MusicStoreInstrumentsGrid = ((System.Windows.Controls.DataGrid)(target)); #line 19 "..\..\MainWindow.xaml" this.MusicStoreInstrumentsGrid.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.MusicStoreInstrumentsGrid_PreviewKeyDown); #line default #line hidden return; case 3: this.menu = ((System.Windows.Controls.Menu)(target)); return; case 4: this.MusicStoreShowPianoCheckbox = ((System.Windows.Controls.CheckBox)(target)); #line 22 "..\..\MainWindow.xaml" this.MusicStoreShowPianoCheckbox.Click += new System.Windows.RoutedEventHandler(this.MusicStoreShowPianoCheckbox_Click); #line default #line hidden return; case 5: this.MusicStoreShowGuitarCheckbox = ((System.Windows.Controls.CheckBox)(target)); #line 23 "..\..\MainWindow.xaml" this.MusicStoreShowGuitarCheckbox.Click += new System.Windows.RoutedEventHandler(this.MusicStoreShowGuitarCheckbox_Click); #line default #line hidden return; case 6: this.addPianoButton = ((System.Windows.Controls.MenuItem)(target)); #line 26 "..\..\MainWindow.xaml" this.addPianoButton.Click += new System.Windows.RoutedEventHandler(this.addPianoButton_Click); #line default #line hidden return; case 7: this.addGuitarButton = ((System.Windows.Controls.MenuItem)(target)); #line 27 "..\..\MainWindow.xaml" this.addGuitarButton.Click += new System.Windows.RoutedEventHandler(this.addGuitarButton_Click); #line default #line hidden return; } this._contentLoaded = true; }