예제 #1
0
 private string SessionTypeIndicator(SessionType sessionType)
 {
     if (sessionType.Equals(SessionType.Double))
     {
         return(" * ");
     }
     return("   ");
 }
예제 #2
0
        public void StartSession(SessionType sessionType)
        {
            InitializeSession();

            _startedTime = DateTimeOffset.Now.ToUnixTimeSeconds();
            _empaticaHandler.StartSession(_startedTime);

            CurrentSessionType = sessionType;

            _isDataSession = CurrentSessionType.Equals(SessionType.Data);

            ResetModels();

            _stopwatch.Reset();
            _stopwatch.Start();
            _stopwatchDisposable = Observable.Interval(TimeSpan.FromMilliseconds(10))
                                   .SubscribeOn(RxApp.TaskpoolScheduler)
                                   .ObserveOn(RxApp.MainThreadScheduler)
                                   .Subscribe(_ => ElapsedTime = _stopwatch.Elapsed);

            _isCapturing = true;
        }