Exemplo n.º 1
0
        public int GetAge(IDelaySubframe subframe)
        {
            if (!needsRefresh)
            {
                throw new InvalidOperationException("NeedsRefresh should have been tested before calling GetAge");
            }

            DelaySubframeConstant dsc = subframe as DelaySubframeConstant;

            return(dsc.Age);
        }
Exemplo n.º 2
0
 public int GetAge(IDelaySubframe subframe)
 {
     if (subframe is DelaySubframeConstant)
     {
         DelaySubframeConstant dsc = subframe as DelaySubframeConstant;
         return(dsc.Age);
     }
     else if (subframe is DelaySubframeVariable)
     {
         DelaySubframeVariable dsv = subframe as DelaySubframeVariable;
         return(dsv.GetAge(currentPosition, totalFrames));
     }
     else
     {
         return(0);
     }
 }
        public int GetAge(IDelaySubframe subframe)
        {
            DelaySubframeVariable dsv = subframe as DelaySubframeVariable;

            return(dsv.GetAge(currentPosition, totalFrames));
        }
Exemplo n.º 4
0
 public int GetAge(IDelaySubframe subframe)
 {
     return(0);
 }
Exemplo n.º 5
0
        public int GetAge(IDelaySubframe subframe)
        {
            DelaySubframeConstant dsc = subframe as DelaySubframeConstant;

            return(dsc.Age);
        }