Esempio n. 1
0
File: Track.cs Progetto: pkmuru/tw
        public void AddLunchSession(Session lunchSession)
        {
            var lunch = new Talk("Lunch") {Duration = lunchSession.Duration};

            lunchSession.AddTalk(lunch);
            Sessions.Insert(1, lunchSession);
        }
Esempio n. 2
0
File: Track.cs Progetto: pkmuru/tw
        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);
        }
Esempio n. 3
0
File: Track.cs Progetto: pkmuru/tw
 public void AddSession(Session session)
 {
     Sessions.Add(session);
 }
Esempio n. 4
0
File: Track.cs Progetto: pkmuru/tw
 public Track(Session session)
 {
     Sessions = new List<Session> { session };
 }
Esempio n. 5
0
File: Session.cs Progetto: pkmuru/tw
 public Session(Session session)
     : this(session._startTime, session.Duration)
 {
 }