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); } }
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); } }