Beispiel #1
0
        public AnnouncementsEditPresenter(IAnnouncementsEdit announcementsEdit, IAnnouncementsController announcementsController)
            : base(announcementsEdit)
        {
            Requires.NotNull("announcementsController", announcementsController);
            _announcementsController = announcementsController;

            View.GetSettings        += GetSettings;
            View.GetItem            += GetItem;
            View.GetAnnouncement    += GetAnnouncement;
            View.DeleteAnnouncement += DeleteAnnouncement;
            View.UpdateAnnouncement += UpdateAnnouncement;
        }
Beispiel #2
0
        public AnnouncementsViewPresenter(IAnnouncementsView announcementsView, IAnnouncementsController announcementsController)
            : base(announcementsView)
        {
            Requires.NotNull("announcementsController", announcementsController);

            _announcementsController = announcementsController;

            View.GetSettings         += GetSettings;
            View.GetAnnouncements    += GetAnnouncements;
            View.GetTemplate         += GetTemplate;
            View.GetPermissions      += GetPermissions;
            View.GetRenderedTemplate += GetRenderedTemplate;
        }