Esempio n. 1
0
        protected override void LoadTweet(TweetNotification tweet)
        {
            timerProgress.Stop();
            totalTime = timeLeft = tweet.GetDisplayDuration(Program.UserConfig.NotificationDurationValue);
            progressBarTimer.Value = Program.UserConfig.NotificationTimerCountDown ? 1000 : 0;

            base.LoadTweet(tweet);
        }
Esempio n. 2
0
        protected virtual void LoadTweet(TweetNotification tweet)
        {
            CurrentTweetUrl = tweet.TweetUrl;
            CurrentQuoteUrl = tweet.QuoteUrl;
            currentColumn   = tweet.Column;

            resourceHandler.SetHTML(GetTweetHTML(tweet));
            browser.Load("https://tweetdeck.twitter.com");
        }
Esempio n. 3
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);
        }
        // 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;
        }
Esempio n. 5
0
        protected virtual string GetTweetHTML(TweetNotification tweet)
        {
            string bodyClasses = browser.Bounds.Contains(PointToClient(Cursor.Position)) ? "td-hover" : string.Empty;

            return(tweet.GenerateHtml(bodyClasses));
        }
Esempio n. 6
0
        // notification methods

        public virtual void ShowNotification(TweetNotification notification)
        {
            LoadTweet(notification);
        }