예제 #1
0
        // Ajouter un événement

        public static void CreateEvent(Event ev)
        {

            ev.eventId = events_db.Count + 1;
            events_db.Add(ev.eventId, ev);

        }
예제 #2
0
        // Ajout d'un événement / ID
        public void addUserEvent(long groupID, Event newEvent)
        {
            Group group = GetUserGroupById(groupID);

            if (group != null)
                group.AddEvent(newEvent);
        }
예제 #3
0
 // Ajout d'un événement
 public List<Event> AddEvent(Event ev)
 {
     events.Add(ev);
     return events;
 }