fix news issue

This commit is contained in:
stubbfel
2013-09-18 11:52:52 +02:00
parent a54b1aa095
commit 4a76622165
2 changed files with 2 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ namespace CampusAppWP8.Utility
try
{
ScheduledActionService.Add(periodicTask);
ScheduledActionService.LaunchForTest(taskName, new TimeSpan(10));
}
catch (Exception e)
{

View File

@@ -112,7 +112,7 @@ namespace CampusAppWP8ScheduledTaskAgent
{
IconicTileData data = new IconicTileData();
Random random = new Random();
int randomNumber = random.Next(0, this.eventModel.Channel[0].Item.Count);
int randomNumber = random.Next(0, this.newsModel.Channel[0].Item.Count);
RSSModel item = this.newsModel.Channel[0].Item[randomNumber];
data.WideContent1 = item.Date;
data.WideContent2 = StringManager.ToShortString(item.Title, 30) + "...";