public CRedeemTicket()
        {
            this.InitializeComponent();
            this.txtStatus.GotFocus += new RoutedEventHandler(txtStatus_GotFocus);
            this.txtPrintedMachine.GotFocus += new RoutedEventHandler(txtPrintedMachine_GotFocus);
            this.txtClaimedDevice.GotFocus += new RoutedEventHandler(txtClaimedDevice_GotFocus);
            this.txtClaimedDate.GotFocus += new RoutedEventHandler(txtClaimedDate_GotFocus);
            this.txtTickAmount.GotFocus += new RoutedEventHandler(txtTickAmount_GotFocus);
            _worker = new CashDispenserWorker(this, ModuleName.Voucher);

            this.dispenserStatus.Visibility = Settings.IsGloryCDEnabled ? Visibility.Hidden : CashDispenserWorker.Visibliity;

        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ManualCashDispenser"/> class.
 /// </summary>
 /// <param name="worker">The worker.</param>
 public ManualCashDispenser(CashDispenserWorker worker)
 {
     _parentModuleName = worker.ModuleName;
     InitializeComponent();
     _worker = worker;
 }
 /// <summary>
 /// Initializes the cash dispenser.
 /// </summary>
 private void InitializeCashDispenser()
 {
     _worker = new CashDispenserWorker(this, ModuleName.ManualAttendantPay);
     this.dispenserStatus.Visibility = CashDispenserWorker.Visibliity;
 }
 /// <summary>
 /// Initializes the cash dispenser.
 /// </summary>
 private void InitializeCashDispenser()
 {
     _worker = new CashDispenserWorker(this, ModuleName.ManualAttendantPay);
     _dispenserStatus = CashDispenserStatusHelper.AddCashDispenserStatus(gridCashDispenser);
 }
        public CAttendantPays()
        {
            InitializeComponent();
            if (!Security.SecurityHelper.HasAccess("BMC.Presentation.CAttendantpay.btnVoid"))
                btnVoid.Visibility = Visibility.Hidden;

            //Cage Setting
            if (Settings.CAGE_ENABLED)
            {
                btnProcess.Visibility = Visibility.Hidden;
                btnGenerateSlipNo.Visibility = Visibility.Visible;
            }
            else
            {
                btnProcess.Visibility = Visibility.Visible;
                btnGenerateSlipNo.Visibility = Visibility.Hidden;
            }
            // Helper_classes.Common.BindListView(treasuryList, dgHandpay);
            handpay = HandpayBusinessObject.CreateInstance();
            FillTreasury(string.Empty);


            // Helper_classes.Common.BindListView(treasuryList, dgHandpay);
            handpay = HandpayBusinessObject.CreateInstance();

            this.Unloaded += new RoutedEventHandler(CAttendantPays_Unloaded);
            _worker = new CashDispenserWorker(this, ModuleName.ManualAttendantPay);
        }