public static CashDispenserStatus AddCashDispenserStatus(Panel parent)
        {
            CashDispenserStatus dispenserStatus = null;

            if (Settings.CashDispenserEnabled)
            {
                parent.Children.Add((
                                        dispenserStatus = new CashDispenserStatus()
                {
                    Height = 280,
                    HorizontalAlignment = HorizontalAlignment.Stretch,
                    VerticalAlignment = VerticalAlignment.Stretch
                }));
            }
            return(dispenserStatus);
        }
예제 #2
0
 /// <summary>
 /// Initializes the cash dispenser.
 /// </summary>
 private void InitializeCashDispenser()
 {
     _worker          = new CashDispenserWorker(this, ModuleName.ManualAttendantPay);
     _dispenserStatus = CashDispenserStatusHelper.AddCashDispenserStatus(gridCashDispenser);
 }