public void doComponentBegin(Token t) { _component.Push(t); switch (t.TokenVal) { case TokenValue.Tvcalendar: _curCalendar = new iCalendar(); break; case TokenValue.Tvevent: case TokenValue.Tvjournal: _curEvent = new iCalEvent(); _curCalendar.Events.Add(_curEvent); _curEvent.CalendarId = _curCalendar.Id; break; } }