protected virtual void LoadTweet(TweetNotification tweet) { currentNotification = tweet; resourceHandler.SetHTML(GetTweetHTML(tweet)); browser.Load(TwitterUtils.TweetDeckURL); DisplayTooltip(null); }
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; }
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(); }
// 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; }
// notification methods public virtual void ShowNotification(TweetNotification notification) { LoadTweet(notification); }
protected abstract string GetTweetHTML(TweetNotification tweet);
protected virtual string GetTweetHTML(TweetNotification tweet) { return(tweet.GenerateHtml(IsCursorOverBrowser ? "td-hover" : string.Empty)); }