internal MeetingAggregator(Meeting meeting) { Assertion.Require(meeting, "meeting"); this.meeting = meeting; _participants = new Lazy <List <Contact> >(() => MeetingData.GetMeetingParticipants(this.meeting)); }
protected override void OnSave() { if (this.IsNew) { this.ControlNo = MeetingData.GetNextMeetingControlNo(this.Project); } MeetingData.WriteMeeting(this); }
static public FixedList <Meeting> Search(string keywords) { return(MeetingData.SearchMeetings(keywords)); }
static public FixedList <Meeting> GetOpened(string keywords) { return(MeetingData.GetOpenedMeetings(keywords)); }
internal void RemoveParticipant(Contact participant) { MeetingData.RemoveParticipant(this.meeting, participant); _participants.Value.Remove(participant); }
internal void AddParticipant(Contact participant) { MeetingData.AddParticipant(this.meeting, participant); _participants.Value.Add(participant); }