예제 #1
0
        public void Initialize(ILogger logger, IMarqueeController controller)
        {
            if (logger == null)
                throw new ArgumentNullException("logger");
            if (controller == null)
                throw new ArgumentNullException("controller");

            this.logger = logger;
            this.controller = controller;
            
            try
            {
                this.pageControl.AddSelectedPageChangedCallback(() => SelectedPageChanged());
            }
            catch (Exception ex)
            {
                logger.Error("  MarqueeView.Initialize", ex);
            }
        }
예제 #2
0
        public void Initialize(ILogger logger, IMarqueeController controller)
        {
            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }
            if (controller == null)
            {
                throw new ArgumentNullException("controller");
            }

            this.logger     = logger;
            this.controller = controller;

            try
            {
                this.pageControl.AddSelectedPageChangedCallback(() => SelectedPageChanged());
            }
            catch (Exception ex)
            {
                logger.Error("  MarqueeView.Initialize", ex);
            }
        }