public Event(DateTime date, string name, EventType eventType, string goals, string observations) { this.date = date; this.name = name; this.eventType = eventType; this.goals = goals; this.observations = observations; }
public EventType AddEventType(string name) { try { this.Retrieve(name); } catch (EventTypeDoesNotExistException) { EventType newEventType = new EventType(name); newEventType.Persist(); return newEventType; } throw new EventTypeExistsException("Se está intentando ingresar un tipo de evento que" + " ya existe en la base de datos."); }
public Event AddEvent(DateTime date, string name, EventType eventType, string goals, string observations) { try { Retrieve(date); } catch (EventDoesNotExistException) { Event newEvent = new Event(date, name, eventType, goals, observations); newEvent.Persist(); return newEvent; } throw new EventExistsException("Se está intentando ingresar un evento que " + "ya existe en la base de datos. Cada evento " + "tiene una fecha y hora únicos."); }
public void Inicio() { ensayo = controladorTiposEvento.Retrieve("Ensayo"); misa = controladorTiposEvento.Retrieve("Misa"); otro = controladorTiposEvento.Retrieve("Otro"); }