Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
        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;
        }