Ejemplo n.º 1
0
 private TwitterFeedSettings GetFeedSettings()
 {
     TwitterFeedSettings settings = HttpRuntime.Cache[TwitterFeedSettings.TWITTERFEED_SETTINGS_CACHE_KEY] as TwitterFeedSettings;
     if (settings == null)
     {
         settings = new TwitterFeedSettings(this.GetSettings());
         HttpRuntime.Cache[TwitterFeedSettings.TWITTERFEED_SETTINGS_CACHE_KEY] = settings;
     }
     return settings;
 }
Ejemplo n.º 2
0
 public override void LoadWidget()
 {
     this.Settings = this.GetFeedSettings();
     this.twitterLink.Text = this.Settings.FollowMeText;
     this.twitterLink.NavigateUrl = string.Format(this.TwitterUrl, this.Settings.TwitterAccountName);
     this.LoadData();
 }