public override void OnEntry() { if (cr.State == state) { return; } autoEnter = 0; if ((cr.State is List)) { autoEnter = PosConfiguration.GetListAutoSelect(cr.State); } if (autoEnter > 0) { ts.lastKeyPressed = CashRegisterInput.lastKeyPressed; if (ts.tmr == null) { ts.tmr = new Timer(timerCallback, ts, autoEnter, Timeout.Infinite); } else { ts.tmr.Change(autoEnter, System.Threading.Timeout.Infinite); } } }