コード例 #1
0
        public Caption PreviousCaption(Caption caption)
        {
            var idx = Captions.IndexOf(caption);

            if (idx == 0)
            {
                return(null);
            }

            return(Captions[idx - 1]);
        }
コード例 #2
0
        public Caption NextCaption(Caption caption)
        {
            var idx = Captions.IndexOf(caption);

            if (idx >= Captions.Count - 1)
            {
                return(null);
            }

            return(Captions[idx + 1]);
        }