Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.reservationWindow = ((HotelGUI.ReservationsWindow)(target));
                return;

            case 2:
                this.ListBox_Reservations = ((System.Windows.Controls.ListBox)(target));
                return;

            case 3:

            #line 11 "..\..\ReservationsWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonClose_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        private void Button_AllReservations_Click(object sender, RoutedEventArgs e)
        {
            ReservationsWindow okno = new ReservationsWindow(hotel);

            okno.ShowDialog();
        }