Ejemplo n.º 1
0
        public List <BabyEventGroup> ListBabyEventGroups(int days)
        {
            List <BabyEventGroup> eventGroups = new List <BabyEventGroup>();
            BabyEventGroup        group;
            List <Event>          events;
            Event evt;

            events        = new List <Event>();
            evt           = new LFeedingEvent();
            evt.StartDate = DateTime.Parse("2012-09-01");
            evt.Checked   = true;
            events.Add(evt);
            group = new BabyEventGroup("Maria", events);

            eventGroups.Add(group);

            events        = new List <Event>();
            evt           = new RFeedingEvent();
            evt.StartDate = DateTime.Parse("2012-08-01");
            evt.Checked   = true;
            events.Add(evt);
            group = new BabyEventGroup("Barbara", events);

            eventGroups.Add(group);

            return(eventGroups);
        }
Ejemplo n.º 2
0
        public List <Event> ListFeedEvents(Baby baby, int offset, int count)
        {
            List <Event> events = new List <Event>();
            Event        evt;

            switch (offset)
            {
            case 0:
                evt           = new LFeedingEvent();
                evt.StartDate = DateTime.Parse("2012-09-01");
                evt.Checked   = true;
                events.Add(evt);
                break;

            case 1:
                evt           = new RFeedingEvent();
                evt.StartDate = DateTime.Parse("2012-10-15");
                evt.Checked   = false;
                events.Add(evt);
                break;

            case 2:
                evt           = new BFeedingEvent();
                evt.StartDate = DateTime.Now;
                evt.Checked   = true;
                events.Add(evt);
                break;
            }

            return(events);
        }
Ejemplo n.º 3
0
        public Event GetEventById(int id)
        {
            LFeedingEvent evt = new LFeedingEvent();

            evt.StartDate = DateTime.Now;
            evt.Duration  = 10;
            evt.Notes     = "teste";

            return(evt);
        }