private void btnCancel_Click(object sender, RoutedEventArgs e) { NewReservation windowNewReservation = new NewReservation(); windowNewReservation.Show(); this.Close(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.winNewReservation = ((Hotel_Reservation.NewReservation)(target)); return; case 2: this.lblRoomType = ((System.Windows.Controls.Label)(target)); return; case 3: this.lblNumberOfRooms = ((System.Windows.Controls.Label)(target)); return; case 4: this.combNumberOfRooms = ((System.Windows.Controls.ComboBox)(target)); return; case 5: this.lblCheckInDate = ((System.Windows.Controls.Label)(target)); return; case 6: this.btnGetQuote = ((System.Windows.Controls.Button)(target)); #line 14 "..\..\NewReservation.xaml" this.btnGetQuote.Click += new System.Windows.RoutedEventHandler(this.btnGetQuote_Click); #line default #line hidden return; case 7: this.lblPriceTitle = ((System.Windows.Controls.Label)(target)); return; case 8: this.comboRoomType = ((System.Windows.Controls.ComboBox)(target)); return; case 9: this.lblCheckOut = ((System.Windows.Controls.Label)(target)); return; case 10: this.btnCancel = ((System.Windows.Controls.Button)(target)); #line 18 "..\..\NewReservation.xaml" this.btnCancel.Click += new System.Windows.RoutedEventHandler(this.btnCancel_Click); #line default #line hidden return; case 11: this.datepickerCheckIn = ((System.Windows.Controls.DatePicker)(target)); return; case 12: this.datepickerCheckOut = ((System.Windows.Controls.DatePicker)(target)); return; } this._contentLoaded = true; }