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); }
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"); }
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; }
protected virtual string GetTweetHTML(TweetNotification tweet) { string bodyClasses = browser.Bounds.Contains(PointToClient(Cursor.Position)) ? "td-hover" : string.Empty; return(tweet.GenerateHtml(bodyClasses)); }
// notification methods public virtual void ShowNotification(TweetNotification notification) { LoadTweet(notification); }