void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.uc_Report = ((Hotel.UC_Report)(target));
                return;

            case 2:
                this.dp_from = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 3:
                this.dp_to = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 4:
                this.btn_monthlyReport = ((System.Windows.Controls.Button)(target));

            #line 56 "..\..\UC_Report.xaml"
                this.btn_monthlyReport.Click += new System.Windows.RoutedEventHandler(this.btn_monthlyReport_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.btn_yearReport = ((System.Windows.Controls.Button)(target));

            #line 63 "..\..\UC_Report.xaml"
                this.btn_yearReport.Click += new System.Windows.RoutedEventHandler(this.btn_yearReport_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.btn_roomReport = ((System.Windows.Controls.Button)(target));

            #line 70 "..\..\UC_Report.xaml"
                this.btn_roomReport.Click += new System.Windows.RoutedEventHandler(this.btn_roomReport_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.crView_Report = ((SAPBusinessObjects.WPF.Viewer.CrystalReportsViewer)(target));
                return;
            }
            this._contentLoaded = true;
        }
        private void ListViewMenu_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            UserControl usc = null;

            GridMain.Children.Clear();

            switch (((ListViewItem)((ListView)sender).SelectedItem).Name)
            {
            case "CheckIn":
                txb_title.Text = "Nhận phòng";
                usc            = new UC_CheckIn();
                GridMain.Children.Add(usc);
                break;

            case "CheckOut":
                txb_title.Text = "Trả phòng";
                usc            = new UC_CheckOut();
                GridMain.Children.Add(usc);
                break;

            case "Statistic":
                txb_title.Text = "Thống kê";
                usc            = new UC_Statistic();
                GridMain.Children.Add(usc);
                break;

            case "Report":
                txb_title.Text = "Báo cáo";
                usc            = new UC_Report();
                GridMain.Children.Add(usc);
                break;

            case "RoomStatus":
                txb_title.Text = "Trạng thái phòng";
                usc            = new ListRoom();
                GridMain.Children.Add(usc);
                break;

            case "SearchBill":
                txb_title.Text = "Tìm kiếm hóa đơn";
                usc            = new UC_FindBill();
                GridMain.Children.Add(usc);
                break;

            default:
                break;
            }
        }