Exemple #1
0
        public void AddLunchSession(Session lunchSession)
        {
            var lunch = new Talk("Lunch") {Duration = lunchSession.Duration};

            lunchSession.AddTalk(lunch);
            Sessions.Insert(1, lunchSession);
        }
Exemple #2
0
        public void AddNetworkEvent(TimeSpan networkEventStartTime)
        {
            var lastSession = Sessions[Sessions.Count - 1];
            var lastTalkEndTime = networkEventStartTime;

            if (lastSession.Talks != null && lastSession.Talks.Count > 0)
            {
                var lastTalk = lastSession.Talks[lastSession.Talks.Count - 1];
                lastTalkEndTime = lastTalk.Time + new TimeSpan(0, lastTalk.Duration, 0);
            }

            if (lastTalkEndTime > networkEventStartTime)
            {
                networkEventStartTime = lastTalkEndTime;
            }

            var netWorkSession = new Session(networkEventStartTime, 0);

            var networkTalk = new Talk("Networking Event") {Duration = 0};
            netWorkSession.AddTalk(networkTalk);
            Sessions.Add(netWorkSession);
        }