protected virtual void LoadTweet(TweetNotification tweet)
        {
            currentNotification = tweet;
            resourceHandler.SetHTML(GetTweetHTML(tweet));

            browser.Load(TwitterUtils.TweetDeckURL);
            DisplayTooltip(null);
        }
Exemple #2
0
        protected override void LoadTweet(TweetNotification tweet)
        {
            timerProgress.Stop();
            totalTime = timeLeft = tweet.GetDisplayDuration(Program.UserConfig.NotificationDurationValue);
            progressBarTimer.Value = Program.UserConfig.NotificationTimerCountDown ? progressBarTimer.Maximum : progressBarTimer.Minimum;

            base.LoadTweet(tweet);
        }
        // notification methods

        public virtual void HideNotification()
        {
            browser.Load("about:blank");
            DisplayTooltip(null);

            Location            = ControlExtensions.InvisibleLocation;
            currentNotification = null;
        }
Exemple #4
0
        protected override string GetTweetHTML(TweetNotification tweet)
        {
            string html = base.GetTweetHTML(tweet);

            foreach (InjectedHTML injection in plugins.Bridge.NotificationInjections)
            {
                html = injection.Inject(html);
            }

            return(html);
        }
        protected override string GetTweetHTML(TweetNotification tweet)
        {
            string html = tweet.GenerateHtml(BodyClasses, this);

            foreach (InjectedHTML injection in plugins.NotificationInjections)
            {
                html = injection.InjectInto(html);
            }

            return(html);
        }
        // notification methods

        public override void ShowNotification(TweetNotification notification)
        {
            tweetQueue.Enqueue(notification);

            if (!IsPaused)
            {
                UpdateTitle();

                if (totalTime == 0)
                {
                    LoadNextNotification();
                }
            }

            needsTrim |= tweetQueue.Count >= TrimMinimum;
            AnalyticsFile.DesktopNotifications.Trigger();
        }
Exemple #7
0
        // notification methods

        public override void ShowNotification(TweetNotification notification)
        {
            if (IsPaused)
            {
                tweetQueue.Enqueue(notification);
            }
            else
            {
                tweetQueue.Enqueue(notification);
                UpdateTitle();

                if (totalTime == 0)
                {
                    LoadNextNotification();
                }
            }

            needsTrim |= tweetQueue.Count >= TrimMinimum;
        }
Exemple #8
0
        // notification methods

        public virtual void ShowNotification(TweetNotification notification)
        {
            LoadTweet(notification);
        }
 protected abstract string GetTweetHTML(TweetNotification tweet);
Exemple #10
0
 protected virtual string GetTweetHTML(TweetNotification tweet)
 {
     return(tweet.GenerateHtml(IsCursorOverBrowser ? "td-hover" : string.Empty));
 }