Exemple #1
0
 public void Resume()
 {
     VerifyRootClock();
     beginTime = rootClock.Time - pauseOffset;
     rootClock.AddClock(this);
     Tick(rootClock.Time);
 }
Exemple #2
0
 public void Begin(IRootClock rootClock)
 {
     this.rootClock = rootClock;
     VerifyRootClock();
     beginTime = rootClock.Time;
     currentFillBehavior = Timeline.FillBehavior;
     rootClock.AddClock(this);
     Tick(rootClock.Time);
 }
Exemple #3
0
 public void Begin(IRootClock rootClock)
 {
     this.rootClock = rootClock;
     VerifyRootClock();
     beginTime           = rootClock.Time;
     currentFillBehavior = Timeline.FillBehavior;
     rootClock.AddClock(this);
     Tick(rootClock.Time);
 }
Exemple #4
0
        public void AddClock(IClock clock)
        {
            if (clocks.Contains(clock))
            {
                return;
            }

            clocks.Add(clock);

            if (IsConnected)
            {
                rootClock.AddClock(clock);
            }
        }