private void btnPIBack_Click(object sender, RoutedEventArgs e) { NewReservation NewReservWindow = new NewReservation(); NewReservWindow.Show(); this.Close(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.winNewReserv = ((Hotel_Reservations.NewReservation)(target)); return; case 2: this.recBackground = ((System.Windows.Shapes.Rectangle)(target)); return; case 3: this.imgNRIcon = ((System.Windows.Controls.Image)(target)); return; case 4: this.lblNewReserv = ((System.Windows.Controls.Label)(target)); return; case 5: this.txbNRDescrip = ((System.Windows.Controls.TextBlock)(target)); return; case 6: this.lblRoomType = ((System.Windows.Controls.Label)(target)); return; case 7: this.cmbRoomType = ((System.Windows.Controls.ComboBox)(target)); return; case 8: this.lblNumOfRoom = ((System.Windows.Controls.Label)(target)); return; case 9: this.txbNumOfRoom = ((System.Windows.Controls.TextBox)(target)); return; case 10: this.lblCheckIn = ((System.Windows.Controls.Label)(target)); return; case 11: this.dtpCheckIn = ((System.Windows.Controls.DatePicker)(target)); return; case 12: this.lblCheckOut = ((System.Windows.Controls.Label)(target)); return; case 13: this.dtpCheckOut = ((System.Windows.Controls.DatePicker)(target)); return; case 14: this.btnSearch = ((System.Windows.Controls.Button)(target)); #line 49 "..\..\NewReservation.xaml" this.btnSearch.Click += new System.Windows.RoutedEventHandler(this.btnSearch_Click); #line default #line hidden return; case 15: this.btnClear = ((System.Windows.Controls.Button)(target)); return; case 16: this.lblQuote = ((System.Windows.Controls.Label)(target)); return; case 17: this.txbQuote = ((System.Windows.Controls.TextBox)(target)); #line 52 "..\..\NewReservation.xaml" this.txbQuote.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txbQuote_TextChanged); #line default #line hidden return; case 18: this.btnContinue = ((System.Windows.Controls.Button)(target)); #line 53 "..\..\NewReservation.xaml" this.btnContinue.Click += new System.Windows.RoutedEventHandler(this.btnContinue_Click); #line default #line hidden return; case 19: this.btnNRBack = ((System.Windows.Controls.Button)(target)); #line 54 "..\..\NewReservation.xaml" this.btnNRBack.Click += new System.Windows.RoutedEventHandler(this.btnNRBack_Click); #line default #line hidden return; } this._contentLoaded = true; }