private void createPictureNotifier() { CheckerAndNotifier checkWSPhotos = new CheckerAndNotifier(); checkWSPhotos.Message = "Nouvelle(s) photo(s)"; checkWSPhotos.Options = this.Options; checkWSPhotos.UrlToSend = ConfigurationManager.AppSettings["photosUrl"]; checkWSPhotos.Notificater = this.Form1; checkWSPhotos.Checker = new WebServiceChecker(this.IconStatusManager, NotifierType.Picture); checkWSPhotos.Checker.StatusUrl = this.UrlWebService + "/status/photos"; checkWSPhotos.Checker.Authentification = this.AuthentificationDataManager.Authentification; ((WebServiceChecker)checkWSPhotos.Checker).RegisterObservers(this.Observers); this.PictureNotifier = checkWSPhotos; }
private void createForumNotifier() { CheckerAndNotifier checkWSForum = new CheckerAndNotifier(); checkWSForum.Message = "Nouveau(x) message(s)"; checkWSForum.Options = this.Options; checkWSForum.UrlToSend = ConfigurationManager.AppSettings["forumUrl"]; checkWSForum.Notificater = this.Form1; checkWSForum.Checker = new WebServiceChecker(this.IconStatusManager, NotifierType.Forum); checkWSForum.Checker.StatusUrl = this.UrlWebService + "/status/forum"; checkWSForum.Checker.Authentification = this.AuthentificationDataManager.Authentification; ((WebServiceChecker)checkWSForum.Checker).RegisterObservers(this.Observers); this.ForumNotifier = checkWSForum; }