예제 #1
0
파일: Factory.cs 프로젝트: krack/notifier
        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;
        }
예제 #2
0
파일: Factory.cs 프로젝트: krack/notifier
        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;
        }
예제 #3
0
파일: Factory.cs 프로젝트: krack/notifier
        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;
        }
예제 #4
0
파일: Factory.cs 프로젝트: krack/notifier
        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;
        }