private void btnReturnToNewReservation_Click(object sender, RoutedEventArgs e) { NewReservation demoWindow = new NewReservation(); demoWindow.Show(); this.Close(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.winNewReservation = ((Group01.NewReservation)(target)); return; case 2: this.gbxInput = ((System.Windows.Controls.GroupBox)(target)); return; case 3: this.lblInstruction = ((System.Windows.Controls.Label)(target)); return; case 4: this.txtNumOfRooms = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.cbxRoomType = ((System.Windows.Controls.ComboBox)(target)); return; case 6: this.dtpCheckIn = ((System.Windows.Controls.DatePicker)(target)); #line 42 "..\..\NewReservation.xaml" this.dtpCheckIn.SelectedDateChanged += new System.EventHandler <System.Windows.Controls.SelectionChangedEventArgs>(this.dtpCheckIn_SelectedDateChanged); #line default #line hidden return; case 7: this.dtpCheckOut = ((System.Windows.Controls.DatePicker)(target)); return; case 8: this.lblCheckOutDate = ((System.Windows.Controls.Label)(target)); return; case 9: this.lblCheckInDate = ((System.Windows.Controls.Label)(target)); return; case 10: this.lblRoomType = ((System.Windows.Controls.Label)(target)); return; case 11: this.lblNumOfRooms = ((System.Windows.Controls.Label)(target)); return; case 12: this.btnGetQuote = ((System.Windows.Controls.Button)(target)); #line 62 "..\..\NewReservation.xaml" this.btnGetQuote.Click += new System.Windows.RoutedEventHandler(this.btnGetQuote_Click); #line default #line hidden return; case 13: this.btnClear = ((System.Windows.Controls.Button)(target)); #line 67 "..\..\NewReservation.xaml" this.btnClear.Click += new System.Windows.RoutedEventHandler(this.btnClear_Click); #line default #line hidden return; case 14: this.btnReturnToMainWindow = ((System.Windows.Controls.Button)(target)); #line 72 "..\..\NewReservation.xaml" this.btnReturnToMainWindow.Click += new System.Windows.RoutedEventHandler(this.btnReturnToMainWindow_Click); #line default #line hidden return; case 15: this.lblSystemTitle = ((System.Windows.Controls.Label)(target)); return; case 16: this.txtRoomQuote = ((System.Windows.Controls.TextBox)(target)); return; case 17: this.lblRoomQuote = ((System.Windows.Controls.Label)(target)); return; case 18: this.btnContinue = ((System.Windows.Controls.Button)(target)); #line 87 "..\..\NewReservation.xaml" this.btnContinue.Click += new System.Windows.RoutedEventHandler(this.btnContinue_Click); #line default #line hidden return; } this._contentLoaded = true; }