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.CCashDeskManager)(target)); #line 8 "..\..\..\UserControls\CCashDeskManager.xaml" this.UserControl.Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded); #line default #line hidden #line 8 "..\..\..\UserControls\CCashDeskManager.xaml" this.UserControl.Unloaded += new System.Windows.RoutedEventHandler(this.UserControl_Unloaded); #line default #line hidden return; case 2: this.LayoutRoot = ((System.Windows.Controls.Grid)(target)); return; case 3: this.LayoutRoot_Copy = ((System.Windows.Controls.Grid)(target)); return; case 4: this.chkALLCD = ((System.Windows.Controls.CheckBox)(target)); #line 117 "..\..\..\UserControls\CCashDeskManager.xaml" this.chkALLCD.Checked += new System.Windows.RoutedEventHandler(this.chkALLCD_Checked); #line default #line hidden #line 117 "..\..\..\UserControls\CCashDeskManager.xaml" this.chkALLCD.Unchecked += new System.Windows.RoutedEventHandler(this.chkALLCD_Unchecked); #line default #line hidden return; case 5: this.txtCashDeskTicketInVal = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.lblHandpays = ((System.Windows.Controls.TextBlock)(target)); return; case 7: this.txtCashDeskTicketOutVal = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.lblVouchersIssued = ((System.Windows.Controls.TextBlock)(target)); return; case 9: this.lblJackpot = ((System.Windows.Controls.TextBlock)(target)); return; case 10: this.chkCashDeskTicketIn = ((System.Windows.Controls.CheckBox)(target)); return; case 11: this.txtCashDeskTicketInQty = ((System.Windows.Controls.TextBox)(target)); return; case 12: this.txtCashDeskTicketOutQty = ((System.Windows.Controls.TextBox)(target)); return; case 13: this.chkCashDeskTicketOut = ((System.Windows.Controls.CheckBox)(target)); return; case 14: this.txtHandpayVal = ((System.Windows.Controls.TextBox)(target)); return; case 15: this.txtHandpayQty = ((System.Windows.Controls.TextBox)(target)); return; case 16: this.chkHandpays = ((System.Windows.Controls.CheckBox)(target)); return; case 17: this.textBlock1 = ((System.Windows.Controls.TextBlock)(target)); return; case 18: this.txtJackpotVal = ((System.Windows.Controls.TextBox)(target)); return; case 19: this.txtJackPotQty = ((System.Windows.Controls.TextBox)(target)); return; case 20: this.chkjackpot = ((System.Windows.Controls.CheckBox)(target)); return; case 21: this.textBlock2 = ((System.Windows.Controls.TextBlock)(target)); return; case 22: this.txtProgHandpayVal = ((System.Windows.Controls.TextBox)(target)); return; case 23: this.txtProgHandpayQty = ((System.Windows.Controls.TextBox)(target)); return; case 24: this.chkProghandpays = ((System.Windows.Controls.CheckBox)(target)); return; case 25: this.txtVoidQty = ((System.Windows.Controls.TextBox)(target)); return; case 26: this.chkVoidTransactions = ((System.Windows.Controls.CheckBox)(target)); return; case 27: this.textBlock4 = ((System.Windows.Controls.TextBlock)(target)); return; case 28: this.txtVoidTransaction = ((System.Windows.Controls.TextBox)(target)); return; case 29: this.txtCashDeskShortPayQty = ((System.Windows.Controls.TextBox)(target)); return; case 30: this.chkShortPays = ((System.Windows.Controls.CheckBox)(target)); return; case 31: this.textBlock3 = ((System.Windows.Controls.TextBlock)(target)); return; case 32: this.txtCashDeskShortPaysVal = ((System.Windows.Controls.TextBox)(target)); return; case 33: this.lblOfflinevoucher = ((System.Windows.Controls.TextBlock)(target)); return; case 34: this.txtCashDeskVoidVoucherQty = ((System.Windows.Controls.TextBox)(target)); return; case 35: this.chkVoidVoucher = ((System.Windows.Controls.CheckBox)(target)); return; case 36: this.textBlock41 = ((System.Windows.Controls.TextBlock)(target)); return; case 37: this.txtCashDeskVoidVoucherValue = ((System.Windows.Controls.TextBox)(target)); return; case 38: this.txtOfflinevoucher1 = ((System.Windows.Controls.TextBox)(target)); return; case 39: this.chkOfflinevoucher = ((System.Windows.Controls.CheckBox)(target)); return; case 40: this.txtOfflinevoucher = ((System.Windows.Controls.TextBox)(target)); return; case 41: this.chkALLMC = ((System.Windows.Controls.CheckBox)(target)); #line 220 "..\..\..\UserControls\CCashDeskManager.xaml" this.chkALLMC.Checked += new System.Windows.RoutedEventHandler(this.chkALLMC_Checked); #line default #line hidden #line 220 "..\..\..\UserControls\CCashDeskManager.xaml" this.chkALLMC.Unchecked += new System.Windows.RoutedEventHandler(this.chkALLMC_Unchecked); #line default #line hidden return; case 42: this.txtMachineTicketOutVal = ((System.Windows.Controls.TextBox)(target)); return; case 43: this.txtActiveVal = ((System.Windows.Controls.TextBox)(target)); return; case 44: this.txtVoidval = ((System.Windows.Controls.TextBox)(target)); return; case 45: this.txtExpiredVal = ((System.Windows.Controls.TextBox)(target)); return; case 46: this.txtMachineTicketInVal = ((System.Windows.Controls.TextBox)(target)); return; case 47: this.txtMachineTicketInQty = ((System.Windows.Controls.TextBox)(target)); return; case 48: this.txtMachineTicketOutQty = ((System.Windows.Controls.TextBox)(target)); return; case 49: this.txtActiveQty = ((System.Windows.Controls.TextBox)(target)); return; case 50: this.txtVoidTranQty = ((System.Windows.Controls.TextBox)(target)); return; case 51: this.txtExpiredQty = ((System.Windows.Controls.TextBox)(target)); return; case 52: this.chkTicketOut = ((System.Windows.Controls.CheckBox)(target)); return; case 53: this.chkTicketIn = ((System.Windows.Controls.CheckBox)(target)); return; case 54: this.lblNoncashableVoucherIn = ((System.Windows.Controls.TextBlock)(target)); return; case 55: this.txtNCInVal = ((System.Windows.Controls.TextBox)(target)); return; case 56: this.txtNCInQty = ((System.Windows.Controls.TextBox)(target)); return; case 57: this.chkNCTicketIn = ((System.Windows.Controls.CheckBox)(target)); return; case 58: this.lblNoncashableVoucherOut = ((System.Windows.Controls.TextBlock)(target)); return; case 59: this.txtNCOutVal = ((System.Windows.Controls.TextBox)(target)); return; case 60: this.txtNCOutQty = ((System.Windows.Controls.TextBox)(target)); return; case 61: this.chkNCTicketOut = ((System.Windows.Controls.CheckBox)(target)); return; case 62: this.lblUnprocessedHandpay = ((System.Windows.Controls.TextBlock)(target)); return; case 63: this.txtUnprocessedHandpayVal = ((System.Windows.Controls.TextBox)(target)); return; case 64: this.txtUnprocessedHandpayQty = ((System.Windows.Controls.TextBox)(target)); return; case 65: this.chkUnprocessedHandpay = ((System.Windows.Controls.CheckBox)(target)); return; case 66: this.txtExcepVal = ((System.Windows.Controls.TextBox)(target)); return; case 67: this.txtLiabilityVal = ((System.Windows.Controls.TextBox)(target)); return; case 68: this.txtExcepQty = ((System.Windows.Controls.TextBox)(target)); return; case 69: this.txtLiabilityQty = ((System.Windows.Controls.TextBox)(target)); return; case 70: this.chkActive = ((System.Windows.Controls.CheckBox)(target)); return; case 71: this.chkVoidCancel = ((System.Windows.Controls.CheckBox)(target)); return; case 72: this.chkExpired = ((System.Windows.Controls.CheckBox)(target)); return; case 73: this.chkException = ((System.Windows.Controls.CheckBox)(target)); return; case 74: this.chkLiability = ((System.Windows.Controls.CheckBox)(target)); return; case 75: this.grpCoinHopper = ((System.Windows.Controls.GroupBox)(target)); return; case 76: this.txtRefundVal = ((System.Windows.Controls.TextBox)(target)); return; case 77: this.lblRefunds = ((System.Windows.Controls.TextBlock)(target)); return; case 78: this.txtFillsVal = ((System.Windows.Controls.TextBox)(target)); return; case 79: this.lblFills = ((System.Windows.Controls.TextBlock)(target)); return; case 80: this.lblCashDeskFloat = ((System.Windows.Controls.TextBlock)(target)); return; case 81: this.chkRefunds = ((System.Windows.Controls.CheckBox)(target)); return; case 82: this.txtRefundQty = ((System.Windows.Controls.TextBox)(target)); return; case 83: this.txtFillsQty = ((System.Windows.Controls.TextBox)(target)); return; case 84: this.chkRefills = ((System.Windows.Controls.CheckBox)(target)); return; case 85: this.txtCashDeskFloatVal = ((System.Windows.Controls.TextBox)(target)); return; case 86: this.txtCashDeskFloatQty = ((System.Windows.Controls.TextBox)(target)); return; case 87: this.chkCashDeskFloat = ((System.Windows.Controls.CheckBox)(target)); return; case 88: this.btnPrint = ((System.Windows.Controls.Button)(target)); #line 392 "..\..\..\UserControls\CCashDeskManager.xaml" this.btnPrint.Click += new System.Windows.RoutedEventHandler(this.btnPrint_Click); #line default #line hidden return; case 89: this.btnTicketAnomalies = ((System.Windows.Controls.Button)(target)); #line 393 "..\..\..\UserControls\CCashDeskManager.xaml" this.btnTicketAnomalies.Click += new System.Windows.RoutedEventHandler(this.btnTicketAnomalies_Click); #line default #line hidden return; case 90: this.pnlHeader = ((System.Windows.Controls.Grid)(target)); return; case 91: this.vbStartDate = ((System.Windows.Controls.Viewbox)(target)); return; case 92: this.dtpStartDate = ((Microsoft.Windows.Controls.DatePicker)(target)); #line 418 "..\..\..\UserControls\CCashDeskManager.xaml" this.dtpStartDate.SelectedDateChanged += new System.EventHandler<System.Windows.Controls.SelectionChangedEventArgs>(this.dtpStartDate_SelectedDateChanged); #line default #line hidden return; case 93: this.txtStartDate = ((System.Windows.Controls.TextBox)(target)); return; case 94: this.tmpStartTime = ((AC.AvalonControlsLibrary.Controls.TimePicker)(target)); #line 421 "..\..\..\UserControls\CCashDeskManager.xaml" this.tmpStartTime.SelectedTimeChanged += new AC.AvalonControlsLibrary.Controls.TimeSelectedChangedEventHandler(this.tmpStartTime_SelectedTimeChanged); #line default #line hidden return; case 95: this.vbStartDate_Copy = ((System.Windows.Controls.Viewbox)(target)); return; case 96: this.dtpEndDate = ((Microsoft.Windows.Controls.DatePicker)(target)); #line 424 "..\..\..\UserControls\CCashDeskManager.xaml" this.dtpEndDate.SelectedDateChanged += new System.EventHandler<System.Windows.Controls.SelectionChangedEventArgs>(this.dtpEndDate_SelectedDateChanged); #line default #line hidden return; case 97: this.txtEndDate = ((System.Windows.Controls.TextBox)(target)); return; case 98: this.dtpEndtime = ((AC.AvalonControlsLibrary.Controls.TimePicker)(target)); #line 427 "..\..\..\UserControls\CCashDeskManager.xaml" this.dtpEndtime.SelectedTimeChanged += new AC.AvalonControlsLibrary.Controls.TimeSelectedChangedEventHandler(this.dtpEndtime_SelectedTimeChanged); #line default #line hidden return; case 99: this.prgViewAll = ((System.Windows.Controls.ProgressBar)(target)); return; case 100: this.btnDebug = ((System.Windows.Controls.Button)(target)); return; case 101: this.btnAnomalies = ((System.Windows.Controls.Button)(target)); #line 435 "..\..\..\UserControls\CCashDeskManager.xaml" this.btnAnomalies.Click += new System.Windows.RoutedEventHandler(this.btnAnomalies_Click); #line default #line hidden return; case 102: this.btnPrint_Copy = ((System.Windows.Controls.Button)(target)); #line 437 "..\..\..\UserControls\CCashDeskManager.xaml" this.btnPrint_Copy.Click += new System.Windows.RoutedEventHandler(this.btnPrint_Copy_Click); #line default #line hidden return; case 103: this.btnProcess = ((System.Windows.Controls.Button)(target)); #line 438 "..\..\..\UserControls\CCashDeskManager.xaml" this.btnProcess.Click += new System.Windows.RoutedEventHandler(this.btnProcess_Click); #line default #line hidden return; case 104: this.btnReconciliation = ((System.Windows.Controls.Button)(target)); #line 441 "..\..\..\UserControls\CCashDeskManager.xaml" this.btnReconciliation.Click += new System.Windows.RoutedEventHandler(this.btnReconciliation_Click); #line default #line hidden return; case 105: this.btnMovement = ((System.Windows.Controls.Button)(target)); #line 442 "..\..\..\UserControls\CCashDeskManager.xaml" this.btnMovement.Click += new System.Windows.RoutedEventHandler(this.btnMovement_Click); #line default #line hidden return; case 106: this.btnBalancing = ((System.Windows.Controls.Button)(target)); #line 443 "..\..\..\UserControls\CCashDeskManager.xaml" this.btnBalancing.Click += new System.Windows.RoutedEventHandler(this.btnBalancing_Click); #line default #line hidden return; case 107: this.txtPage = ((System.Windows.Controls.TextBlock)(target)); return; case 108: this.cboUser = ((System.Windows.Controls.ComboBox)(target)); return; case 109: this.cboRoute = ((System.Windows.Controls.ComboBox)(target)); #line 484 "..\..\..\UserControls\CCashDeskManager.xaml" this.cboRoute.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboRoute_SelectionChanged); #line default #line hidden return; case 110: this.btnRefreshTime = ((BMC.Presentation.ControlBoxButtons)(target)); return; } this._contentLoaded = true; }