예제 #1
0
        public WorkingHoursViewModel()
        {
            _workingHoursService = DependencyService.Resolve <WorkingHoursService>();

            CreateRecordCommand = new Command(OnCreateRecordTapped);
            RefreshCommand      = new AsyncCommand(RefreshAsync);
            DeleteRecordCommand = new AsyncCommand <object>(DeleteRecordAsync);
        }
예제 #2
0
        public CreateWorkingHoursRecordViewModel()
        {
            _requestId           = RequestIdProvider.GetRequestId();
            _tasksService        = DependencyService.Resolve <TasksService>();
            _workingHoursService = DependencyService.Resolve <WorkingHoursService>();

            CreateCommand = new AsyncCommand(CreateRecordAsync);

            Hours = "1";
        }