コード例 #1
0
        private Task startTimeEntry(bool initializeInManualMode)
        {
            OnboardingStorage.StartButtonWasTapped();

            if (hasStopButtonEverBeenUsed)
            {
                onboardingStorage.SetNavigatedAwayFromMainViewAfterStopButton();
            }

            var parameter = initializeInManualMode
                ? StartTimeEntryParameters.ForManualMode(timeService.CurrentDateTime)
                : StartTimeEntryParameters.ForTimerMode(timeService.CurrentDateTime);

            return(navigate <StartTimeEntryViewModel, StartTimeEntryParameters>(parameter));
        }
コード例 #2
0
        private Task startTimeEntry(bool useDefaultMode)
        {
            var initializeInManualMode = useDefaultMode == userPreferences.IsManualModeEnabled;

            OnboardingStorage.StartButtonWasTapped();
            var startTimeEntryStopwatch = stopwatchProvider.CreateAndStore(MeasuredOperation.OpenStartView);

            startTimeEntryStopwatch.Start();

            if (hasStopButtonEverBeenUsed)
            {
                onboardingStorage.SetNavigatedAwayFromMainViewAfterStopButton();
            }

            var parameter = initializeInManualMode
                ? StartTimeEntryParameters.ForManualMode(TimeService.CurrentDateTime)
                : StartTimeEntryParameters.ForTimerMode(TimeService.CurrentDateTime);

            return(navigate <StartTimeEntryViewModel, StartTimeEntryParameters>(parameter));
        }