void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.window_db = ((FileWatchingProgram.databaseWindow)(target)); #line 8 "..\..\databaseWindow.xaml" this.window_db.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden #line 8 "..\..\databaseWindow.xaml" this.window_db.Closed += new System.EventHandler(this.window_db_Closed); #line default #line hidden return; case 2: this.databaseGrid = ((System.Windows.Controls.DataGrid)(target)); return; case 3: this.btn_Refresh = ((System.Windows.Controls.Button)(target)); #line 30 "..\..\databaseWindow.xaml" this.btn_Refresh.Click += new System.Windows.RoutedEventHandler(this.btn_Refresh_Click); #line default #line hidden return; case 4: this.txtblk_QueryTitle = ((System.Windows.Controls.TextBlock)(target)); return; case 5: this.txtbox_Query = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.btn_submitQuery = ((System.Windows.Controls.Button)(target)); #line 34 "..\..\databaseWindow.xaml" this.btn_submitQuery.Click += new System.Windows.RoutedEventHandler(this.btn_submitQuery_Click); #line default #line hidden return; } this._contentLoaded = true; }
private void tlbr_OpenDatabase_Click(object sender, RoutedEventArgs e) { databaseWindow database = new databaseWindow(); database.Show(); }