private void GameArchiveBtn_Click(object sender, RoutedEventArgs e)//An event handler if the game archive button is clicked, displays the GameArchive window and closes the RootWindow { GameArchive archive = new GameArchive(); archive.Show(); this.Close(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.GameArchiveWindow = ((Project_ChessWithInterface.GameArchive)(target)); #line 8 "..\..\GameArchive.xaml" this.GameArchiveWindow.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.Games_lst = ((System.Windows.Controls.ListBox)(target)); #line 10 "..\..\GameArchive.xaml" this.Games_lst.Loaded += new System.Windows.RoutedEventHandler(this.Games_list_Loaded); #line default #line hidden return; case 3: this.Reset_btn = ((System.Windows.Controls.Button)(target)); #line 11 "..\..\GameArchive.xaml" this.Reset_btn.Click += new System.Windows.RoutedEventHandler(this.Reset_btn_Click); #line default #line hidden return; case 4: this.label = ((System.Windows.Controls.Label)(target)); return; case 5: this.NameSearch_txt = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.label_Copy = ((System.Windows.Controls.Label)(target)); return; case 7: this.DateSearch_txt = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.label_Copy1 = ((System.Windows.Controls.Label)(target)); return; case 9: this.MoveCountSearch_txt = ((System.Windows.Controls.TextBox)(target)); return; case 10: this.Search_btn = ((System.Windows.Controls.Button)(target)); #line 18 "..\..\GameArchive.xaml" this.Search_btn.Click += new System.Windows.RoutedEventHandler(this.Search_btn_Click); #line default #line hidden return; case 11: this.DisplayRecord_btn = ((System.Windows.Controls.Button)(target)); #line 19 "..\..\GameArchive.xaml" this.DisplayRecord_btn.Click += new System.Windows.RoutedEventHandler(this.DisplayRecord_btn_Click); #line default #line hidden return; case 12: this.Back_btn = ((System.Windows.Controls.Button)(target)); #line 20 "..\..\GameArchive.xaml" this.Back_btn.Click += new System.Windows.RoutedEventHandler(this.Back_btn_Click); #line default #line hidden return; } this._contentLoaded = true; }