fix news issue
This commit is contained in:
@@ -22,6 +22,7 @@ namespace CampusAppWP8.Utility
|
||||
try
|
||||
{
|
||||
ScheduledActionService.Add(periodicTask);
|
||||
ScheduledActionService.LaunchForTest(taskName, new TimeSpan(10));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
@@ -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) + "...";
|
||||
|
||||
Reference in New Issue
Block a user