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
        protected void Save()
        {
            var time = new ActivityTime
            {
                Id         = TimeId,
                ActivityId = ActivityId,
                Comment    = Comment,
                Hours      = Hours,
                Timestamp  = SelectedDate,
                Reported   = Reported,
            };

            ActivityTimeService.UpdateActivityTime(time);

            ViewManager.OpenActivity(ActivityId);
        }