Exemplo n.º 1
0
            protected void ToggleReported()
            {
                var value = !Reported;

                var activity = Service.GetActivityTime(Id);

                if (activity != null)
                {
                    activity.Reported = value;
                    Service.UpdateActivityTime(activity);
                }

                Reported = value;
            }
Exemplo n.º 2
0
        public void Load(Guid id)
        {
            TimeId = id;

            var time = ActivityTimeService.GetActivityTime(id);

            SelectedDate = time.Timestamp;
            Hours        = time.Hours;
            Comment      = time.Comment;
            Reported     = time.Reported;

            var activity = ProjectActivityService.GetProjectActivity(time.ActivityId);

            ActivityId = time.ActivityId;

            var project = ProjectService.GetProject(activity.ProjectId);

            FullName = ProjectService.GetFullName(project) + " > " + activity.Name;
        }