Beispiel #1
0
        public TextSequenceInputViewModel(KCUser user, ITextSampleGenerator gen)
        {
            _seqInputModel = new TextSequenceInputModel();
            _seqActive     = false;

            _generator  = gen;
            _sessionMgr = new UserSession(user, gen);

            _updateTimer          = new DispatcherTimer(DispatcherPriority.Normal, App.Current.Dispatcher);
            _updateTimer.Interval = new TimeSpan(0, 0, 0, 0, UPDATE_INTERVAL_IN_MS);
            _updateTimer.Tick    += (_, a) => {
                DoInterval();
            };
        }
Beispiel #2
0
 public UserSession(KCUser user, ITextSampleGenerator generator)
 {
     _user      = user;
     _generator = generator;
 }
 public UserSessionStateless(KCUser user, ITextSampleGenerator generator)
     : base(user, generator)
 {
 }