Esempio n. 1
0
        public AlertMessageViewController(IAlertMessageViewDelegate viewDelegate)
        {
            if (viewDelegate == null)
            {
                throw new ArgumentNullException(nameof(viewDelegate));
            }

            this.viewDelegate = viewDelegate;
        }
        public MessageViewController(
            IStatusMessageViewDelegate statusMessageViewDelegate,
            IAlertMessageViewDelegate alertMessageViewDelegate)
        {
            if (statusMessageViewDelegate != null)
            {
                AddRoute(new StatusMessageViewController(statusMessageViewDelegate));
            }

            if (alertMessageViewDelegate != null)
            {
                AddRoute(new AlertMessageViewController(alertMessageViewDelegate));
            }
        }