Пример #1
0
        public EventDef create(EventDefinition newEvent)
        {
            if (find(newEvent) != null)
                throw new ApplicationException("Can't add an event when it's already been added");

            var eventDef = new EventDef(newEvent, this, events.Count);
            add(eventDef);
            TypeDefinition.Events.Add(newEvent);
            return eventDef;
        }
Пример #2
0
 public void add(EventDef e)
 {
     events.add(e);
 }