Nextrek
Diff Revisions
80
vs
81
for /WindowsPhone/NotizieTL/NotizieTLScheduledTaskAgent/ScheduledAgent.cs
|
@@ -1,4 +1,4 @@ |
1 |
|
- |
#define DEBUG_AGENT |
|
1 |
+ |
//#define DEBUG_AGENT |
2 |
2 |
|
using System.Windows; |
3 |
3 |
|
using Microsoft.Phone.Scheduler; |
4 |
4 |
|
using Microsoft.Phone.Shell; |
|
@@ -118,10 +118,10 @@ |
118 |
118 |
|
client.DownloadStringCompleted += (s, e) => |
119 |
119 |
|
{ |
120 |
120 |
|
DownloadStringCompleted(s, e); |
121 |
|
- |
//#if DEBUG_AGENT |
122 |
|
- |
ScheduledActionService.LaunchForTest(task.Name, TimeSpan.FromSeconds(10)); |
|
121 |
+ |
#if DEBUG_AGENT |
|
122 |
+ |
ScheduledActionService.LaunchForTest(task.Name, TimeSpan.FromSeconds(60)); |
123 |
123 |
|
System.Diagnostics.Debug.WriteLine("Periodic task is started again: " + task.Name); |
124 |
|
- |
//#endif |
|
124 |
+ |
#endif |
125 |
125 |
|
NotifyComplete(); |
126 |
126 |
|
}; |
127 |
127 |
|
client.DownloadStringAsync(new Uri("http://tuttolavoro.indicitalia.it/RSS/app.xml")); |
|
@@ -193,7 +193,7 @@ |
193 |
193 |
|
var tileData = new StandardTileData(); |
194 |
194 |
|
tileData.Title = ""; |
195 |
195 |
|
tileData.BackgroundImage = new Uri("/iconaLARGE.png", UriKind.Relative); //images/iconaLARGE.png |
196 |
|
- |
tileData.Count = random.Next(99); |
|
196 |
+ |
//tileData.Count = random.Next(99); |
197 |
197 |
|
// to make tile flip add data to background also |
198 |
198 |
|
tileData.BackTitle = articoli4tile[r].Data; |
199 |
199 |
|
tileData.BackBackgroundImage = new Uri("/tileBackBlack.png", UriKind.Relative); |