private void btnRMEdit_Click(object sender, RoutedEventArgs e)
        {
            RoomManagement RoomManagWindow = new RoomManagement();

            RoomManagWindow.Show();
            this.Close();
        }
        private void btnRoomMgmt_Click(object sender, RoutedEventArgs e)
        {
            RoomManagement RoomManagWindow = new RoomManagement();

            //RoomManagement RoomManagWindow = new RoomManagement(7);

            //RoomManagWindow.MyNumber = 7;
            //RoomManagWindow.DoSomething();

            RoomManagWindow.Show();
            this.Close();
        }
Ejemplo n.º 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.winReservMgmt = ((Hotel_Reservations.RoomManagement)(target));
                return;

            case 2:
                this.recBackground = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 3:
                this.imgRMIcon = ((System.Windows.Controls.Image)(target));
                return;

            case 4:
                this.lblRoomMgmt = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.cbxRoomType = ((System.Windows.Controls.ComboBox)(target));

            #line 27 "..\..\RoomManagement.xaml"
                this.cbxRoomType.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbxRoomType_SelectionChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.lblRoomTypeLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.lblRoomType = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.txtQuantityInput = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.lblQuantityLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.lblPriceLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.txtPriceInput = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.lblOccupancyLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.btnRMSave = ((System.Windows.Controls.Button)(target));

            #line 43 "..\..\RoomManagement.xaml"
                this.btnRMSave.Click += new System.Windows.RoutedEventHandler(this.btnRMSave_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.btnRMBack = ((System.Windows.Controls.Button)(target));

            #line 44 "..\..\RoomManagement.xaml"
                this.btnRMBack.Click += new System.Windows.RoutedEventHandler(this.btnRMBack_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.txbRMInstructions = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 16:
                this.txtCurrentOccupancy = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }