Exemple #1
0
        private async Task timeEntrySelected(long timeEntryId)
        {
            if (isEditViewOpen)
            {
                return;
            }

            onboardingStorage.TimeEntryWasTapped();

            lock (isEditViewOpenLock)
            {
                isEditViewOpen = true;
            }

            var editTimeEntryStopwatch = stopwatchProvider.CreateAndStore(MeasuredOperation.EditTimeEntryFromMainLog);

            editTimeEntryStopwatch.Start();

            await navigate <EditTimeEntryViewModel, long>(timeEntryId);

            lock (isEditViewOpenLock)
            {
                isEditViewOpen = false;
            }
        }
Exemple #2
0
        private IObservable <Unit> timeEntrySelected(TimeEntryViewModel timeEntry)
        {
            if (isEditViewOpen)
            {
                return(Observable.Empty <Unit>());
            }

            onboardingStorage.TimeEntryWasTapped();
            return(navigate <EditTimeEntryViewModel, long>(timeEntry.Id).ToObservable());
        }
Exemple #3
0
        private Task edit(TimeEntryViewModel timeEntryViewModel)
        {
            onboardingStorage.TimeEntryWasTapped();

            return(navigationService.Navigate <EditTimeEntryViewModel, long>(timeEntryViewModel.Id));
        }