//When the manage rooms is clicked private void btnRoomMgmt_Click(object sender, RoutedEventArgs e) { Room_Mgmt ManageRoom = new Room_Mgmt(); ManageRoom.Show(); this.Close(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.winRoomMgmt = ((Group03.Room_Mgmt)(target)); return; case 2: this.lblRoomType = ((System.Windows.Controls.Label)(target)); return; case 3: this.lblQuantity = ((System.Windows.Controls.Label)(target)); return; case 4: this.lblPrice = ((System.Windows.Controls.Label)(target)); return; case 5: this.cbxRoomType = ((System.Windows.Controls.ComboBox)(target)); return; case 6: this.txtQuantity = ((System.Windows.Controls.TextBox)(target)); return; case 7: this.txtPrice = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.btnSave = ((System.Windows.Controls.Button)(target)); #line 24 "..\..\Room Mgmt.xaml" this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click); #line default #line hidden return; case 9: this.lblOutput = ((System.Windows.Controls.Label)(target)); return; case 10: this.btnMainMenu = ((System.Windows.Controls.Button)(target)); #line 26 "..\..\Room Mgmt.xaml" this.btnMainMenu.Click += new System.Windows.RoutedEventHandler(this.btnMainMenu_Click); #line default #line hidden return; case 11: this.lblInstructions = ((System.Windows.Controls.Label)(target)); return; case 12: this.lblTitle = ((System.Windows.Controls.Label)(target)); return; case 13: this.dtgRoomList = ((System.Windows.Controls.DataGrid)(target)); return; } this._contentLoaded = true; }