Пример #1
0
        public SlideNavigator(ISlideNavigationSubject slideNavigationSubject, object[] slides)
        {
            if (slideNavigationSubject == null)
            {
                throw new ArgumentNullException(nameof(slideNavigationSubject));
            }
            if (slides == null)
            {
                throw new ArgumentNullException(nameof(slides));
            }

            _slideNavigationSubject = slideNavigationSubject;
            _slides = slides;
        }
        public SlideNavigator(ISlideNavigationSubject slideNavigationSubject, ObservableCollection <object> slides)
        {
            if (slideNavigationSubject == null)
            {
                throw new ArgumentNullException(nameof(slideNavigationSubject));
            }
            if (slides == null)
            {
                throw new ArgumentNullException(nameof(slides));
            }

            _slideNavigationSubject = slideNavigationSubject;
            _slides = slides;
        }
Пример #3
0
 public SlideNavigator(ISlideNavigationSubject slideNavigationSubject, object[] slides)
 {
     _slideNavigationSubject = slideNavigationSubject ?? throw new ArgumentNullException(nameof(slideNavigationSubject));
     _slides = slides ?? throw new ArgumentNullException(nameof(slides));
 }