void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.UserControl = ((BMC.Presentation.CSpotCheck)(target));
     return;
     case 2:
     this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.ControlGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 4:
     this.txtblkDate = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 5:
     this.txtDate = ((System.Windows.Controls.TextBox)(target));
     return;
     case 6:
     this.txtblkTime = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 7:
     this.txtTime = ((System.Windows.Controls.TextBox)(target));
     return;
     case 8:
     this.txtblkZone = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 9:
     this.txtZone = ((System.Windows.Controls.TextBox)(target));
     return;
     case 10:
     this.txtblkPos = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 11:
     this.txtPos = ((System.Windows.Controls.TextBox)(target));
     return;
     case 12:
     this.txtblkUser = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 13:
     this.txtUser = ((System.Windows.Controls.TextBox)(target));
     return;
     case 14:
     this.txtblkGameTitle = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 15:
     this.txtGameTitle = ((System.Windows.Controls.TextBox)(target));
     return;
     case 16:
     this.chkZone = ((System.Windows.Controls.CheckBox)(target));
     
     #line 136 "..\..\..\Views\CSpotCheck.xaml"
     this.chkZone.Checked += new System.Windows.RoutedEventHandler(this.chkZone_Checked);
     
     #line default
     #line hidden
     
     #line 136 "..\..\..\Views\CSpotCheck.xaml"
     this.chkZone.Unchecked += new System.Windows.RoutedEventHandler(this.chkZone_UnChecked);
     
     #line default
     #line hidden
     return;
     case 17:
     this.tvMachineList = ((System.Windows.Controls.TreeView)(target));
     
     #line 137 "..\..\..\Views\CSpotCheck.xaml"
     this.tvMachineList.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler<object>(this.tvMachineList_SelectedItemChanged);
     
     #line default
     #line hidden
     return;
     case 18:
     this.txtblkLastMeterUpdate = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 19:
     this.txtLastMeterUpdate = ((System.Windows.Controls.TextBox)(target));
     return;
     case 20:
     this.txtblkNetWinLoss = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 21:
     this.txtNetWinLoss = ((System.Windows.Controls.TextBox)(target));
     return;
     case 22:
     this.txtblkHandle = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 23:
     this.txtHandle = ((System.Windows.Controls.TextBox)(target));
     return;
     case 24:
     this.txtblkPercentagePayout = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 25:
     this.txtPercentagePayout = ((System.Windows.Controls.TextBox)(target));
     return;
     case 26:
     this.txtblkDrop = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 27:
     this.txtDrop = ((System.Windows.Controls.TextBox)(target));
     return;
     case 28:
     this.txtblkHandpay = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 29:
     this.txtHandpay = ((System.Windows.Controls.TextBox)(target));
     return;
     case 30:
     this.txtblkLastDropDate = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 31:
     this.txtLastDropDate = ((System.Windows.Controls.TextBox)(target));
     return;
     case 32:
     this.btnPerformSpotCheck = ((System.Windows.Controls.Button)(target));
     
     #line 198 "..\..\..\Views\CSpotCheck.xaml"
     this.btnPerformSpotCheck.Click += new System.Windows.RoutedEventHandler(this.btnPerformSpotCheck_Click);
     
     #line default
     #line hidden
     return;
     case 33:
     this.btnPrintReport = ((System.Windows.Controls.Button)(target));
     
     #line 199 "..\..\..\Views\CSpotCheck.xaml"
     this.btnPrintReport.Click += new System.Windows.RoutedEventHandler(this.btnPrintReport_Click);
     
     #line default
     #line hidden
     return;
     case 34:
     this.txtblkMessage = ((System.Windows.Controls.TextBlock)(target));
     return;
     }
     this._contentLoaded = true;
 }
        private void LoadView(string viewCaption)
        {
            //CollectionHelper.SetCurrentExchangeConnectionString();
            //CollectionHelper.SetCurrentTicketConnectionString();
            //

            #region -S001 START
            /*if (viewCaption=="Tickets" )
                {
                    if (!IsTitoEnabled())
                    {
                        MessageBox.ShowBox("MessageID372", "");
                        return;
                    }
                    
                }*/
            #endregion -S001 END

            if (viewCaption != _sCurrentViewCaption)
            {
                if (objFloorView == null)
                {
                    objFloorView = new CFloorView();
                }
                this.DisposeChildren(true);

                switch (viewCaption)
                {
                    case "Floor View":
                        {
                            pnlContent.Children.Add(objFloorView);
                            objFloorView.Margin = new Thickness(0);
                            break;
                        }
                    case "Grid View":
                        {
                            var objGridView = new CGridView();
                            pnlContent.Children.Add(objGridView);
                            objGridView.Margin = new Thickness(0);
                            //objFloorView.SetFloorStatus(false);
                            break;
                        }
                    case "Tickets":
                        {
                            var objTicketsView = new CTickets();
                            pnlContent.Children.Add(objTicketsView);
                            objTicketsView.Margin = new Thickness(0);
                            break;
                        }
                    case "PromotionalTickets":
                        {
                            PromoScreen();
                            break;
                        }

                    case "CurrentStatus":
                        {
                            var objCurrentStatus = new CPositionCurrentStatus();
                            pnlContent.Children.Add(objCurrentStatus);
                            objCurrentStatus.Margin = new Thickness(0);
                            break;
                        }
                    case "Void":
                        {
                            var objVoid = new CVoid();
                            pnlContent.Children.Add(objVoid);
                            objVoid.Margin = new Thickness(0);
                            break;
                        }
                    case "Reports":
                        {
                            var objAnalysis = new CAnalysis();
                            pnlContent.Children.Add(objAnalysis);
                            objAnalysis.Margin = new Thickness(0);
                            break;
                        }
                    case "Player Club":
                        {
                            var objPlayerClub = new CPlayerClub();
                            pnlContent.Children.Add(objPlayerClub);
                            objPlayerClub.Margin = new Thickness(0);
                            break;
                        }
                    case "Hourly":
                        {
                            var objHourly = new cHourly();
                            pnlContent.Children.Add(objHourly);
                            objHourly.Margin = new Thickness(0);
                            break;
                        }
                    case "ShortPay":
                        {
                            _objShortpays = new CShortpays();
                            pnlContent.Children.Add(_objShortpays);
                            _objShortpays.Margin = new Thickness(0);
                            break;
                        }
                    case "SiteInterrogation":
                        {
                            UCSiteIntegorration objAnalysisDetails = new UCSiteIntegorration(2, DateTime.Now, DateTime.Now, 0);
                            pnlContent.Children.Add(objAnalysisDetails);
                            objAnalysisDetails.Margin = new Thickness(0);
                            break;
                        }
                    case "Current Calls":
                        {
                            var objCurrentCalls = new CCurrentCalls();
                            pnlContent.Children.Add(objCurrentCalls);
                            objCurrentCalls.Margin = new Thickness(0);
                            break;
                        }
                    case "Machine Drop":
                        {
                            var drop = new CDrop();
                            pnlContent.Children.Add(drop);
                            drop.Margin = new Thickness(0);
                            break;
                        }
                    case "Cashier\rTransactions":
                        {
                            var objCashDeskManager = new CCashDeskManager(pnlContent);
                            pnlContent.Children.Add(objCashDeskManager);
                            objCashDeskManager.Margin = new Thickness(0);
                            break;
                        }
                    case "Settings":
                        {
                            var objSettings = new CSettings();
                            pnlContent.Children.Add(objSettings);
                            objSettings.Margin = new Thickness(0);
                            break;
                        }

                    case "AFTSettings":
                        {
                            var objAFTSettings = new CAFTSetting();
                            pnlContent.Children.Add(objAFTSettings);
                            objAFTSettings.Margin = new Thickness(0);
                            break;
                        }
                    case "Audit":
                        {
                            var oAuditView = new CAuditView();
                            pnlContent.Children.Add(oAuditView);
                            oAuditView.Margin = new Thickness(0);
                            break;
                        }
                    case "CustomReports":
                        {
                            var oCustom = new CCustomReports();
                            pnlContent.Children.Add(oCustom);
                            oCustom.Margin = new Thickness(0);
                            break;
                        }
                    case "Details":
                        {
                            var oCustom = new InstallationDetails();
                            pnlContent.Children.Add(oCustom);
                            oCustom.Margin = new Thickness(0);
                            break;

                        }
                    case "SyncTicket":
                        {
                            var oSyncTicket = new SyncTicket();
                            pnlContent.Children.Add(oSyncTicket);
                            oSyncTicket.Margin = new Thickness(0);
                            break;

                        }
                    case "SyncAft":
                        {
                            var oSyncAft = new SyncAft();
                            pnlContent.Children.Add(oSyncAft);
                            oSyncAft.Margin = new Thickness(0);
                            break;

                        }

                    case "SyncEmpCard":
                        {
                            var oSyncEmpCard = new EmployeeCardSync();
                            pnlContent.Children.Add(oSyncEmpCard);
                            oSyncEmpCard.Margin = new Thickness(0);
                            break;

                        }

                    case "Updategmupin":
                        {
                            var oUpdateGMIpin = new UpdateGMIpin();
                            pnlContent.Children.Add(oUpdateGMIpin);
                            oUpdateGMIpin.Margin = new Thickness(0);
                            break;
                        }

                    case "CoinDispenser":
                        {
                            if (Settings.CashDispenserEnabled)
                            {
                                var oCoinDispenser = new CCoinDispenser(this);
                                pnlContent.Children.Add(oCoinDispenser);
                                oCoinDispenser.Margin = new Thickness(0);
                            }
                            break;
                        }
                    case "PlayerInformation":
                        {

                            var oCPlayerData = new CPlayerData();
                            pnlContent.Children.Add(oCPlayerData);
                            oCPlayerData.Margin = new Thickness(0);
                            break;
                        }
                    case "ExceptionVouchers":
                        {
                            var objTicketsView = new CExceptionVoucher();
                            pnlContent.Children.Add(objTicketsView);
                            objTicketsView.Margin = new Thickness(0);
                            break;
                        }
                    case "CrossTicketingSettings":
                        {
                            var objCrossTicketingView = new CrossTicketingSettings();
                            pnlContent.Children.Add(objCrossTicketingView);
                            objCrossTicketingView.Margin = new Thickness(0);
                            break;
                        }
                    case "ReadBasedLiquidation":
                        {
                            var objReadLiquidationView = new CReadLiquidationMain();
                            pnlContent.Children.Add(objReadLiquidationView);
                            objReadLiquidationView.Margin = new Thickness(0);
                            break;
                        }
                    case "Unlock":
                        {
                            var CUnlock = new CUnlock();
                            pnlContent.Children.Add(CUnlock);
                            CUnlock.Margin = new Thickness(0);
                            break;
                        }

                    case "FillVault":
                        {
                            var objCVaultDetails = new CVault();
                            pnlContent.Children.Add(objCVaultDetails);
                            objCVaultDetails.Margin = new Thickness(0);
                            break;
                        }
                    case "NGAEnrol":
                        {
                            var objCVaultDetails = new CNGAEnroll();
                            pnlContent.Children.Add(objCVaultDetails);
                            objCVaultDetails.Margin = new Thickness(0);
                            break;
                        }
                    case "ExportDetails":
                        {
                            var oExportDetails = new CExportDetails();
                            pnlContent.Children.Add(oExportDetails);
                            oExportDetails.Margin = new Thickness(0);
                            break;
                        }
                    case "SpotCheck":
                        {
                            var objSpotCheckView = new CSpotCheck();
                            pnlContent.Children.Add(objSpotCheckView);
                            objSpotCheckView.Margin = new Thickness(0);
                            break;
                        }
                    case "UpdateGMUNo":
                        {
                            CGMUNoUpdate CGMUNo = new CGMUNoUpdate();
                            pnlContent.Children.Add(CGMUNo);
                            CGMUNo.Margin = new Thickness(0);
                            break;
                        }
                    case "GMUPing":
                        {
                            CPingGMU cPingGMU = new CPingGMU();
                            pnlContent.Children.Add(cPingGMU);
                            cPingGMU.Margin = new Thickness(0);
                            break;
                        }

                    case "MachineEnableDisable":
                        {
                            CMachineEnableDisable CMachine = new CMachineEnableDisable();
                            pnlContent.Children.Add(CMachine);
                            CMachine.Margin = new Thickness(0);
                            break;
                        }
                    case "GameCapping":
                        {
                            GameCapping CGameCapping = new GameCapping();
                            pnlContent.Children.Add(CGameCapping);
                            CGameCapping.Margin = new Thickness(0);
                            break;
                        }

                }

                if (pnlContent.Children.Count > 0)
                {
                    UIElement child = pnlContent.Children[0] as UIElement;
                    if (child != null)
                    {
                        child.SetMessageBoxOwner();
                    }
                }

                _sCurrentViewCaption = viewCaption;
            }

        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UserControl = ((BMC.Presentation.CSpotCheck)(target));
                return;

            case 2:
                this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.ControlGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.txtblkDate = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.txtDate = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.txtblkTime = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 7:
                this.txtTime = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.txtblkZone = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 9:
                this.txtZone = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.txtblkPos = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 12:
                this.txtblkUser = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 13:
                this.txtUser = ((System.Windows.Controls.TextBox)(target));
                return;

            case 14:
                this.txtblkGameTitle = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 15:
                this.txtGameTitle = ((System.Windows.Controls.TextBox)(target));
                return;

            case 16:
                this.chkZone = ((System.Windows.Controls.CheckBox)(target));

            #line 136 "..\..\..\Views\CSpotCheck.xaml"
                this.chkZone.Checked += new System.Windows.RoutedEventHandler(this.chkZone_Checked);

            #line default
            #line hidden

            #line 136 "..\..\..\Views\CSpotCheck.xaml"
                this.chkZone.Unchecked += new System.Windows.RoutedEventHandler(this.chkZone_UnChecked);

            #line default
            #line hidden
                return;

            case 17:
                this.tvMachineList = ((System.Windows.Controls.TreeView)(target));

            #line 137 "..\..\..\Views\CSpotCheck.xaml"
                this.tvMachineList.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.tvMachineList_SelectedItemChanged);

            #line default
            #line hidden
                return;

            case 18:
                this.txtblkLastMeterUpdate = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 19:
                this.txtLastMeterUpdate = ((System.Windows.Controls.TextBox)(target));
                return;

            case 20:
                this.txtblkNetWinLoss = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 21:
                this.txtNetWinLoss = ((System.Windows.Controls.TextBox)(target));
                return;

            case 22:
                this.txtblkHandle = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 23:
                this.txtHandle = ((System.Windows.Controls.TextBox)(target));
                return;

            case 24:
                this.txtblkPercentagePayout = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 25:
                this.txtPercentagePayout = ((System.Windows.Controls.TextBox)(target));
                return;

            case 26:
                this.txtblkDrop = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 27:
                this.txtDrop = ((System.Windows.Controls.TextBox)(target));
                return;

            case 28:
                this.txtblkHandpay = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 29:
                this.txtHandpay = ((System.Windows.Controls.TextBox)(target));
                return;

            case 30:
                this.txtblkLastDropDate = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 31:
                this.txtLastDropDate = ((System.Windows.Controls.TextBox)(target));
                return;

            case 32:
                this.btnPerformSpotCheck = ((System.Windows.Controls.Button)(target));

            #line 198 "..\..\..\Views\CSpotCheck.xaml"
                this.btnPerformSpotCheck.Click += new System.Windows.RoutedEventHandler(this.btnPerformSpotCheck_Click);

            #line default
            #line hidden
                return;

            case 33:
                this.btnPrintReport = ((System.Windows.Controls.Button)(target));

            #line 199 "..\..\..\Views\CSpotCheck.xaml"
                this.btnPrintReport.Click += new System.Windows.RoutedEventHandler(this.btnPrintReport_Click);

            #line default
            #line hidden
                return;

            case 34:
                this.txtblkMessage = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }