|
@@ -30,10 +30,6 @@ |
30 |
30 |
|
{ |
31 |
31 |
|
public partial class MainPage : PhoneApplicationPage |
32 |
32 |
|
{ |
33 |
|
- |
|
34 |
|
- |
PageOrientation oLand = Microsoft.Phone.Controls.PageOrientation.Landscape; |
35 |
|
- |
PageOrientation oPort = Microsoft.Phone.Controls.PageOrientation.Portrait; |
36 |
|
- |
|
37 |
33 |
|
PhoneApplicationService phoneAppService = PhoneApplicationService.Current; |
38 |
34 |
|
|
39 |
35 |
|
BackgroundWorker backroungWorker; |
|
@@ -105,16 +101,30 @@ |
105 |
101 |
|
} |
106 |
102 |
|
} |
107 |
103 |
|
|
|
104 |
+ |
private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e) |
|
105 |
+ |
{ |
|
106 |
+ |
checkConnection(); |
|
107 |
+ |
SystemTray.IsVisible = false; |
108 |
108 |
|
|
|
109 |
+ |
loadXML(); |
109 |
110 |
|
|
110 |
|
- |
|
|
111 |
+ |
// WebClient is used instead of HttpWebRequest in this code sample because |
|
112 |
+ |
// the implementation is simpler and easier to use, and we do not need to use |
|
113 |
+ |
// advanced functionality that HttpWebRequest provides, such as the ability to send headers. |
|
114 |
+ |
WebClient webClient1 = new WebClient(); |
|
115 |
+ |
WebClient webClient3 = new WebClient(); |
111 |
116 |
|
|
|
117 |
+ |
// Subscribe to the DownloadStringCompleted event prior to downloading the RSS feed. |
|
118 |
+ |
webClient1.DownloadStringCompleted += new DownloadStringCompletedEventHandler(webClient1_DownloadStringCompleted); |
|
119 |
+ |
webClient3.DownloadStringCompleted += new DownloadStringCompletedEventHandler(webClient3_DownloadStringCompleted); |
|
120 |
+ |
|
|
121 |
+ |
// Download the RSS feed. DownloadStringAsync was used instead of OpenStreamAsync because we do not need |
|
122 |
+ |
// to leave a stream open, and we will not need to worry about closing the channel. |
|
123 |
+ |
webClient1.DownloadStringAsync(new System.Uri("http://tuttolavoro.indicitalia.it/RSS/app.xml")); |
|
124 |
+ |
webClient3.DownloadStringAsync(new System.Uri("http://www.wki.it/marketing/app/tuttolavoroApp_Rel_news.xml")); |
|
125 |
+ |
|
|
126 |
+ |
} |
112 |
127 |
|
|
113 |
|
- |
// Click handler that runs when the 'Load Feed' or 'Refresh Feed' button is clicked. |
114 |
|
- |
//private void loadFeedButton_Click(object sender, System.Windows.RoutedEventArgs e) |
115 |
|
- |
//{ |
116 |
|
- |
|
117 |
|
- |
//} |
118 |
128 |
|
|
119 |
129 |
|
// Event handler which runs after the feed is fully downloaded. |
120 |
130 |
|
private void webClient1_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e) |
|
@@ -184,6 +194,7 @@ |
184 |
194 |
|
String giorno = data.Substring(0, 3); |
185 |
195 |
|
String mese = data.Substring(8, 3); |
186 |
196 |
|
|
|
197 |
+ |
//giorni |
187 |
198 |
|
if (data.Contains("Mon")) |
188 |
199 |
|
{ |
189 |
200 |
|
data = data.Replace("Mon", "Lun"); |
|
@@ -213,33 +224,7 @@ |
213 |
224 |
|
data = data.Replace("Sun", "Dom"); |
214 |
225 |
|
} |
215 |
226 |
|
|
216 |
|
- |
//switch (giorno) |
217 |
|
- |
//{ |
218 |
|
- |
// case "Mon" : |
219 |
|
- |
// data = data.Replace("Mon", "Lun"); |
220 |
|
- |
// break; |
221 |
|
- |
// case "Tue": |
222 |
|
- |
// data = data.Replace("Tue", "Mar"); |
223 |
|
- |
// break; |
224 |
|
- |
// case "Wed": |
225 |
|
- |
// data = data.Replace("Wed", "Mer"); |
226 |
|
- |
// break; |
227 |
|
- |
// case "Thu": |
228 |
|
- |
// data = data.Replace("Thu", "Gio"); |
229 |
|
- |
// break; |
230 |
|
- |
// case "Fri": |
231 |
|
- |
// data = data.Replace("Fri", "Ven"); |
232 |
|
- |
// break; |
233 |
|
- |
// case "Sat": |
234 |
|
- |
// data = data.Replace("Sat", "Sab"); |
235 |
|
- |
// break; |
236 |
|
- |
// case "Sun": |
237 |
|
- |
// data = data.Replace("Sun", "Dom"); |
238 |
|
- |
// break; |
239 |
|
- |
// default: |
240 |
|
- |
// break; |
241 |
|
- |
//} |
242 |
|
- |
|
|
227 |
+ |
//mesi |
243 |
228 |
|
if (data.Contains("Jan")) |
244 |
229 |
|
{ |
245 |
230 |
|
data = data.Replace("Jan", "Gen"); |
|
@@ -275,46 +260,7 @@ |
275 |
260 |
|
data = data.Replace("Dec", "Dic"); |
276 |
261 |
|
} |
277 |
262 |
|
|
278 |
|
- |
|
279 |
|
- |
|
280 |
|
- |
//switch (mese) |
281 |
|
- |
//{ |
282 |
|
- |
// case "Jan": |
283 |
|
- |
// data = data.Replace("Jan", "Gen"); |
284 |
|
- |
// break; |
285 |
|
- |
// case "Feb": |
286 |
|
- |
// break; |
287 |
|
- |
// case "Mar": |
288 |
|
- |
// break; |
289 |
|
- |
// case "Apr": |
290 |
|
- |
// break; |
291 |
|
- |
// case "May": |
292 |
|
- |
// data = data.Replace("May", "Mag"); |
293 |
|
- |
// break; |
294 |
|
- |
// case "Jun": |
295 |
|
- |
// data = data.Replace("Jun", "Giu"); |
296 |
|
- |
// break; |
297 |
|
- |
// case "Jul": |
298 |
|
- |
// data = data.Replace("Jul", "Lug"); |
299 |
|
- |
// break; |
300 |
|
- |
// case "Aug": |
301 |
|
- |
// data = data.Replace("Aug", "Ago"); |
302 |
|
- |
// break; |
303 |
|
- |
// case "Sep": |
304 |
|
- |
// data = data.Replace("Sep", "Set"); |
305 |
|
- |
// break; |
306 |
|
- |
// case "Oct": |
307 |
|
- |
// data = data.Replace("Oct", "Ott"); |
308 |
|
- |
// break; |
309 |
|
- |
// case "Nov": |
310 |
|
- |
// break; |
311 |
|
- |
// case "Dec": |
312 |
|
- |
// data = data.Replace("Dec", "Dic"); |
313 |
|
- |
// break; |
314 |
|
- |
// default: |
315 |
|
- |
// break; |
316 |
|
- |
//} |
317 |
|
- |
|
|
263 |
+ |
|
318 |
264 |
|
return data; |
319 |
265 |
|
|
320 |
266 |
|
} |
|
@@ -359,7 +305,7 @@ |
359 |
305 |
|
String dataPubEng = item.Substring(idp, fdp - idp); |
360 |
306 |
|
String dataPub = convertiData(dataPubEng); |
361 |
307 |
|
|
362 |
|
- |
a = new Articolo(title, link, description, descriptionComplete, dataPub, ""); |
|
308 |
+ |
a = new Articolo(title, link, description, descriptionComplete, dataPub, "", ""); |
363 |
309 |
|
listArticoli1.Add(a); |
364 |
310 |
|
|
365 |
311 |
|
feedXML = feedXML.Substring(feedXML.IndexOf("/pubDate") + 16); |
|
@@ -380,9 +326,6 @@ |
380 |
326 |
|
{ |
381 |
327 |
|
// Bind the list of SyndicationItems to our ListBox. |
382 |
328 |
|
feedListBoxNews1.ItemsSource = listArticoli1; |
383 |
|
- |
//feedListPreferiti.ItemsSource = listArticoli1; |
384 |
|
- |
|
385 |
|
- |
//loadFeedButton.Content = "Refresh Feed"; |
386 |
329 |
|
}); |
387 |
330 |
|
} |
388 |
331 |
|
|
|
@@ -417,43 +360,13 @@ |
417 |
360 |
|
//int idp = item.IndexOf("<pubDate>") + 9; |
418 |
361 |
|
//int fdp = item.IndexOf("</pubDate>"); |
419 |
362 |
|
//String dataPub = item.Substring(idp, fdp - idp); |
420 |
|
- |
|
421 |
363 |
|
|
422 |
|
- |
a = new Articolo(title, link, description, "1/1/2013", icona); |
|
364 |
+ |
|
|
365 |
+ |
a = new Articolo(title, link, description, description, "", "", icona); |
423 |
366 |
|
listArticoli3.Add(a); |
424 |
367 |
|
|
425 |
368 |
|
feedXML = feedXML.Substring(feedXML.IndexOf("/Link") + 11); |
426 |
369 |
|
|
427 |
|
- |
|
428 |
|
- |
|
429 |
|
- |
|
430 |
|
- |
//int i = feedXML.IndexOf("<item>")+8; //rappresenta l'indice iniziale del blocco item |
431 |
|
- |
//int j = feedXML.IndexOf("</item>"); //rappresenta l'indice finale del blocco item |
432 |
|
- |
//int k = j - i; //rappresenta la lunghezza della stringa racchiusa dal blocco item |
433 |
|
- |
//String item = feedXML.Substring(i, k); |
434 |
|
- |
|
435 |
|
- |
//int it = item.IndexOf("<title>")+7; |
436 |
|
- |
//int ft = item.IndexOf("</title>"); |
437 |
|
- |
//String title = item.Substring(it, ft - it); |
438 |
|
- |
|
439 |
|
- |
//int il = item.IndexOf("<link>") + 6; |
440 |
|
- |
//int fl = item.IndexOf("</link>"); |
441 |
|
- |
//String link = item.Substring(il, fl - il); |
442 |
|
- |
|
443 |
|
- |
//int id = item.IndexOf("<description>") + 13; |
444 |
|
- |
//int fd = item.IndexOf("</description>"); |
445 |
|
- |
//String description = item.Substring(id, fd - id); |
446 |
|
- |
|
447 |
|
- |
//int idp = item.IndexOf("<pubDate>") + 9; |
448 |
|
- |
//int fdp= item.IndexOf("</pubDate>"); |
449 |
|
- |
//String dataPub = item.Substring(idp, fdp - idp); |
450 |
|
- |
|
451 |
|
- |
//a = new Articolo(title, link, description, dataPub); |
452 |
|
- |
//listArticoli.Add(a); |
453 |
|
- |
|
454 |
|
- |
//feedXML = feedXML.Substring(feedXML.IndexOf("/pubDate")+16); |
455 |
|
- |
|
456 |
|
- |
//Boolean b = true; |
457 |
370 |
|
} |
458 |
371 |
|
|
459 |
372 |
|
// Load the feed into a SyndicationFeed instance. |
|
@@ -469,8 +382,6 @@ |
469 |
382 |
|
{ |
470 |
383 |
|
// Bind the list of SyndicationItems to our ListBox. |
471 |
384 |
|
feedListBoxNews3.ItemsSource = listArticoli3; |
472 |
|
- |
|
473 |
|
- |
//loadFeedButton.Content = "Refresh Feed"; |
474 |
385 |
|
}); |
475 |
386 |
|
} |
476 |
387 |
|
|
|
@@ -503,13 +414,8 @@ |
503 |
414 |
|
grigliaTesto.Height = 420.00; |
504 |
415 |
|
} |
505 |
416 |
|
|
506 |
|
- |
//Double h = titleCanvas.ActualHeight; |
507 |
|
- |
|
508 |
|
- |
//grigliaTesto.Height -= (h * 15) / 100; |
509 |
|
- |
//Double h = textCanvas.ActualHeight; |
510 |
417 |
|
scroller.ScrollToVerticalOffset(0.0); |
511 |
418 |
|
|
512 |
|
- |
|
513 |
419 |
|
if (Microsoft.Phone.Net.NetworkInformation.NetworkInterface.NetworkInterfaceType != Microsoft.Phone.Net.NetworkInformation.NetworkInterfaceType.None) |
514 |
420 |
|
{ |
515 |
421 |
|
loadingPanel2.Visibility = System.Windows.Visibility.Visible; |
|
@@ -517,9 +423,6 @@ |
517 |
423 |
|
|
518 |
424 |
|
webBrowser1.Navigate(new Uri(sItem.Link, UriKind.Absolute)); |
519 |
425 |
|
|
520 |
|
- |
|
521 |
|
- |
|
522 |
|
- |
|
523 |
426 |
|
nomeAppTesto.Visibility = System.Windows.Visibility.Collapsed; |
524 |
427 |
|
refreshButton.Visibility = System.Windows.Visibility.Collapsed; |
525 |
428 |
|
notiziaCanvas.Visibility = System.Windows.Visibility.Visible; |
|
@@ -528,16 +431,6 @@ |
528 |
431 |
|
ApplicationBarMenuItem b = (ApplicationBarMenuItem)ApplicationBar.MenuItems[0]; |
529 |
432 |
|
b.IsEnabled = false; |
530 |
433 |
|
|
531 |
|
- |
//scroller.DataContext = sItem.TestoFull; |
532 |
|
- |
|
533 |
|
- |
// Get the associated URI of the feed item. |
534 |
|
- |
//Uri uri = new Uri(sItem.Link); |
535 |
|
- |
|
536 |
|
- |
// Create a new WebBrowserTask Launcher to navigate to the feed item. |
537 |
|
- |
// An alternative solution would be to use a WebBrowser control, but WebBrowserTask is simpler to use. |
538 |
|
- |
//WebBrowserTask webBrowserTask = new WebBrowserTask(); |
539 |
|
- |
//webBrowserTask.Uri = uri; |
540 |
|
- |
//webBrowserTask.Show(); |
541 |
434 |
|
} |
542 |
435 |
|
} |
543 |
436 |
|
} |
|
@@ -554,11 +447,6 @@ |
554 |
447 |
|
// Set up the page navigation only if a link actually exists in the feed item. |
555 |
448 |
|
if (sItem.Link != null) |
556 |
449 |
|
{ |
557 |
|
- |
//titleCanvas.Text = sItem.Titolo; |
558 |
|
- |
//dateCanvas.Text = sItem.DataPub; |
559 |
|
- |
//textCanvas.Text = sItem.TestoFull; |
560 |
|
- |
|
561 |
|
- |
//notiziaCanvas.Visibility = System.Windows.Visibility.Visible; |
562 |
450 |
|
// Get the associated URI of the feed item. |
563 |
451 |
|
Uri uri = new Uri(sItem.Link); |
564 |
452 |
|
|
|
@@ -594,44 +482,6 @@ |
594 |
482 |
|
} |
595 |
483 |
|
|
596 |
484 |
|
|
597 |
|
- |
|
598 |
|
- |
private void MenuItem_Click(object sender, RoutedEventArgs e) |
599 |
|
- |
{ |
600 |
|
- |
|
601 |
|
- |
//feedListPreferiti.ItemsSource = listArticoliP; |
602 |
|
- |
|
603 |
|
- |
} |
604 |
|
- |
|
605 |
|
- |
private void feedListBoxNews1_Hold(object sender, System.Windows.Input.GestureEventArgs e) |
606 |
|
- |
{ |
607 |
|
- |
|
608 |
|
- |
// ListBox listBox = sender as ListBox; |
609 |
|
- |
// bool a = (listBox.SelectedItem != null); |
610 |
|
- |
// bool b = true; |
611 |
|
- |
|
612 |
|
- |
|
613 |
|
- |
|
614 |
|
- |
// if (listBox != null && listBox.SelectedItem != null) |
615 |
|
- |
// { |
616 |
|
- |
// // Get the SyndicationItem that was tapped. |
617 |
|
- |
// Articolo sItem = (Articolo)listBox.SelectedItem; |
618 |
|
- |
|
619 |
|
- |
// String ti = sItem.Titolo; |
620 |
|
- |
// String te = sItem.Testo; |
621 |
|
- |
// String l = sItem.Link; |
622 |
|
- |
// String d = sItem.DataPub; |
623 |
|
- |
// Boolean isC = false; |
624 |
|
- |
|
625 |
|
- |
// ArticoloPreferito ap = new ArticoloPreferito(ti, te, l, d, isC); |
626 |
|
- |
// listArticoliP.Add(ap); |
627 |
|
- |
|
628 |
|
- |
|
629 |
|
- |
// } |
630 |
|
- |
} |
631 |
|
- |
|
632 |
|
- |
|
633 |
|
- |
|
634 |
|
- |
|
635 |
485 |
|
private void Pivot_SelectionChanged(object sender, SelectionChangedEventArgs e) |
636 |
486 |
|
{ |
637 |
487 |
|
if (pivot.SelectedIndex == 0 || pivot.SelectedIndex == 2) |
|
@@ -678,7 +528,7 @@ |
678 |
528 |
|
sfondoLoading.Height = 600.00; |
679 |
529 |
|
feedListPreferiti.Visibility = System.Windows.Visibility.Collapsed; |
680 |
530 |
|
noFavoritesText.Visibility = System.Windows.Visibility.Visible; |
681 |
|
- |
//appBarAddNote.IsEnabled = true; |
|
531 |
+ |
|
682 |
532 |
|
ApplicationBarMenuItem b = (ApplicationBarMenuItem)ApplicationBar.MenuItems[0]; |
683 |
533 |
|
b.IsEnabled = false; |
684 |
534 |
|
|
|
@@ -700,7 +550,7 @@ |
700 |
550 |
|
sfondoLoading.Height = 600.00; |
701 |
551 |
|
feedListPreferiti.Visibility = System.Windows.Visibility.Visible; |
702 |
552 |
|
noFavoritesText.Visibility = System.Windows.Visibility.Collapsed; |
703 |
|
- |
//appBarAddNote.IsEnabled = true; |
|
553 |
+ |
|
704 |
554 |
|
ApplicationBarMenuItem b = (ApplicationBarMenuItem)ApplicationBar.MenuItems[0]; |
705 |
555 |
|
b.IsEnabled = true; |
706 |
556 |
|
|
|
@@ -729,7 +579,6 @@ |
729 |
579 |
|
|
730 |
580 |
|
private void PhoneApplicationPage_BackKeyPress(object sender, System.ComponentModel.CancelEventArgs e) |
731 |
581 |
|
{ |
732 |
|
- |
//boxNote.Visibility = System.Windows.Visibility.Collapsed; |
733 |
582 |
|
scroller.ScrollToVerticalOffset(0.0); |
734 |
583 |
|
|
735 |
584 |
|
if (notiziaCanvas.Visibility == System.Windows.Visibility.Visible && pivot.SelectedIndex == 0) |
|
@@ -792,10 +641,6 @@ |
792 |
641 |
|
editNotePanel.Visibility = System.Windows.Visibility.Collapsed; |
793 |
642 |
|
} |
794 |
643 |
|
|
795 |
|
- |
private void boxArticolo_Hold(object sender, System.Windows.Input.GestureEventArgs e) |
796 |
|
- |
{ |
797 |
|
- |
|
798 |
|
- |
} |
799 |
644 |
|
|
800 |
645 |
|
private void boxArticolo_Tap(object sender, System.Windows.Input.GestureEventArgs e) |
801 |
646 |
|
{ |
|
@@ -833,35 +678,6 @@ |
833 |
678 |
|
b.IsEnabled = false; |
834 |
679 |
|
} |
835 |
680 |
|
|
836 |
|
- |
//private void appBarZoomIn_Click(object sender, EventArgs e) |
837 |
|
- |
//{ |
838 |
|
- |
// if (textCanvas.FontSize == 20.0) |
839 |
|
- |
// { |
840 |
|
- |
// textCanvas.FontSize = 22.0; |
841 |
|
- |
// } |
842 |
|
- |
// else |
843 |
|
- |
// { |
844 |
|
- |
// if (textCanvas.FontSize == 22.0) |
845 |
|
- |
// { |
846 |
|
- |
// textCanvas.FontSize = 24.0; |
847 |
|
- |
// } |
848 |
|
- |
// } |
849 |
|
- |
//} |
850 |
|
- |
|
851 |
|
- |
//private void appBarZoomOut_Click(object sender, EventArgs e) |
852 |
|
- |
//{ |
853 |
|
- |
// if (textCanvas.FontSize == 22.0) |
854 |
|
- |
// { |
855 |
|
- |
// textCanvas.FontSize = 20.0; |
856 |
|
- |
// } |
857 |
|
- |
// else |
858 |
|
- |
// { |
859 |
|
- |
// if (textCanvas.FontSize == 24.0) |
860 |
|
- |
// { |
861 |
|
- |
// textCanvas.FontSize = 22.0; |
862 |
|
- |
// } |
863 |
|
- |
// } |
864 |
|
- |
//} |
865 |
681 |
|
|
866 |
682 |
|
private void appBarPrev_Click(object sender, EventArgs e) |
867 |
683 |
|
{ |
|
@@ -1132,8 +948,6 @@ |
1132 |
948 |
|
|
1133 |
949 |
|
if (i == 0) |
1134 |
950 |
|
{ |
1135 |
|
- |
//feedListPreferiti.Visibility = System.Windows.Visibility.Collapsed; |
1136 |
|
- |
//noFavoritesText.Visibility = System.Windows.Visibility.Visible; |
1137 |
951 |
|
ApplicationBarMenuItem b = (ApplicationBarMenuItem)ApplicationBar.MenuItems[0]; |
1138 |
952 |
|
b.IsEnabled = false; |
1139 |
953 |
|
} |
|
@@ -1142,6 +956,7 @@ |
1142 |
956 |
|
|
1143 |
957 |
|
} |
1144 |
958 |
|
|
|
959 |
+ |
|
1145 |
960 |
|
private void saveXML() |
1146 |
961 |
|
{ |
1147 |
962 |
|
// Write to the Isolated Storage |
|
@@ -1162,38 +977,51 @@ |
1162 |
977 |
|
|
1163 |
978 |
|
|
1164 |
979 |
|
|
1165 |
|
- |
try |
1166 |
|
- |
{ |
1167 |
|
- |
using (IsolatedStorageFile myIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication()) |
1168 |
|
- |
{ |
1169 |
|
- |
using (IsolatedStorageFileStream stream = myIsolatedStorage.OpenFile("favourites.xml", FileMode.Open)) |
1170 |
|
- |
{ |
1171 |
|
- |
XmlSerializer serializer = new XmlSerializer(typeof(List<ArticoloPreferito>)); |
1172 |
|
- |
List<ArticoloPreferito> data = (List<ArticoloPreferito>)serializer.Deserialize(stream); |
1173 |
|
- |
this.feedListPreferiti.ItemsSource = data; |
1174 |
|
- |
} |
1175 |
|
- |
} |
1176 |
|
- |
} |
1177 |
|
- |
catch |
1178 |
|
- |
{ |
1179 |
|
- |
//add some code here |
1180 |
|
- |
} |
|
980 |
+ |
//try |
|
981 |
+ |
//{ |
|
982 |
+ |
// using (IsolatedStorageFile myIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication()) |
|
983 |
+ |
// { |
|
984 |
+ |
// using (IsolatedStorageFileStream stream = myIsolatedStorage.OpenFile("favourites.xml", FileMode.Open)) |
|
985 |
+ |
// { |
|
986 |
+ |
// XmlSerializer serializer = new XmlSerializer(typeof(List<ArticoloPreferito>)); |
|
987 |
+ |
// List<ArticoloPreferito> data = (List<ArticoloPreferito>)serializer.Deserialize(stream); |
|
988 |
+ |
// this.feedListPreferiti.ItemsSource = data; |
|
989 |
+ |
// } |
|
990 |
+ |
// } |
|
991 |
+ |
//} |
|
992 |
+ |
//catch |
|
993 |
+ |
//{ |
|
994 |
+ |
// //add some code here |
|
995 |
+ |
//} |
1181 |
996 |
|
|
1182 |
997 |
|
|
1183 |
998 |
|
|
1184 |
999 |
|
} |
1185 |
1000 |
|
|
1186 |
|
- |
|
1187 |
1001 |
|
private List<ArticoloPreferito> GenerateFavouritesData() |
1188 |
1002 |
|
{ |
1189 |
1003 |
|
List<ArticoloPreferito> data = new List<ArticoloPreferito>(); |
1190 |
1004 |
|
|
1191 |
|
- |
data = listArticoliP; |
|
1005 |
+ |
foreach (ArticoloPreferito artPref in listArticoliP) |
|
1006 |
+ |
{ |
|
1007 |
+ |
String title = artPref.Titolo; |
|
1008 |
+ |
String link = artPref.Link; |
|
1009 |
+ |
String text = artPref.Testo; |
|
1010 |
+ |
String fullText = artPref.TestoFull; |
|
1011 |
+ |
String date = artPref.DataPub; |
|
1012 |
+ |
String note = artPref.Nota; |
|
1013 |
+ |
String icon = artPref.Icona; |
|
1014 |
+ |
Boolean isChecked = artPref.IsChecked; |
1192 |
1015 |
|
|
|
1016 |
+ |
data.Add(new ArticoloPreferito() |
|
1017 |
+ |
{ Titolo = title, Link = link, Testo = text, TestoFull = fullText, DataPub = date, Nota = note, Icona = icon, IsChecked = isChecked }); |
|
1018 |
+ |
|
|
1019 |
+ |
} |
|
1020 |
+ |
|
|
1021 |
+ |
listArticoliP = data; |
1193 |
1022 |
|
return data; |
1194 |
1023 |
|
} |
1195 |
1024 |
|
|
1196 |
|
- |
|
1197 |
1025 |
|
private void loadXML() |
1198 |
1026 |
|
{ |
1199 |
1027 |
|
try |
|
@@ -1205,6 +1033,7 @@ |
1205 |
1033 |
|
XmlSerializer serializer = new XmlSerializer(typeof(List<ArticoloPreferito>)); |
1206 |
1034 |
|
List<ArticoloPreferito> data = (List<ArticoloPreferito>)serializer.Deserialize(stream); |
1207 |
1035 |
|
this.feedListPreferiti.ItemsSource = data; |
|
1036 |
+ |
listArticoliP = data; |
1208 |
1037 |
|
} |
1209 |
1038 |
|
} |
1210 |
1039 |
|
} |
|
@@ -1215,8 +1044,6 @@ |
1215 |
1044 |
|
} |
1216 |
1045 |
|
|
1217 |
1046 |
|
|
1218 |
|
- |
|
1219 |
|
- |
|
1220 |
1047 |
|
private void appBarDelete_Click(object sender, EventArgs e) |
1221 |
1048 |
|
{ |
1222 |
1049 |
|
List<ArticoloPreferito> listArticoliP2 = new List<ArticoloPreferito>(); |
|
@@ -1254,7 +1081,6 @@ |
1254 |
1081 |
|
canvasOn.Tick += new EventHandler(canvasOn_Tick); |
1255 |
1082 |
|
canvasOn.Start(); |
1256 |
1083 |
|
|
1257 |
|
- |
//phoneAppService.State["MyValue"] = feedListPreferiti; |
1258 |
1084 |
|
saveXML(); |
1259 |
1085 |
|
|
1260 |
1086 |
|
} |
|
@@ -1266,8 +1092,7 @@ |
1266 |
1092 |
|
String testo = textCanvas.Text; |
1267 |
1093 |
|
String nota = boxNote.Text; |
1268 |
1094 |
|
String link = webBrowser1.Source.ToString(); |
1269 |
|
- |
//List<ArticoloPreferito> listArtPref = new List<ArticoloPreferito>(); |
1270 |
|
- |
//listArtPref = listArticoliP; |
|
1095 |
+ |
|
1271 |
1096 |
|
ArticoloPreferito ap; |
1272 |
1097 |
|
|
1273 |
1098 |
|
if (listArticoliP.Count > 0) |
|
@@ -1276,12 +1101,12 @@ |
1276 |
1101 |
|
esistePreferito(); |
1277 |
1102 |
|
if (!esistePref) |
1278 |
1103 |
|
{ |
1279 |
|
- |
ap = new ArticoloPreferito(titolo, link, testo.Substring(0, 125) + "...", testo, data, nota, false); |
|
1104 |
+ |
ap = new ArticoloPreferito(titolo, link, testo.Substring(0, 125) + "...", testo, data, nota, "", false); |
1280 |
1105 |
|
listArticoliP.Add(ap); |
1281 |
1106 |
|
|
1282 |
1107 |
|
artAddFavCanvas.Visibility = System.Windows.Visibility.Visible; |
1283 |
1108 |
|
artAddFavCanvas.Opacity = 1.0; |
1284 |
|
- |
canvasOn.Interval = new TimeSpan(0, 0, 1); // 3seconds |
|
1109 |
+ |
canvasOn.Interval = new TimeSpan(0, 0, 1); // 1seconds |
1285 |
1110 |
|
canvasOn.Tick += new EventHandler(canvasOn_Tick); |
1286 |
1111 |
|
canvasOn.Start(); |
1287 |
1112 |
|
} |
|
@@ -1290,17 +1115,17 @@ |
1290 |
1115 |
|
|
1291 |
1116 |
|
if (listArticoliP.Count == 0) //se la lista preferiti è vuota |
1292 |
1117 |
|
{ |
1293 |
|
- |
ap = new ArticoloPreferito(titolo, link, testo.Substring(0, 125) + "...", testo, data, nota, false); |
|
1118 |
+ |
ap = new ArticoloPreferito(titolo, link, testo.Substring(0, 125) + "...", testo, data, nota, "", false); |
1294 |
1119 |
|
listArticoliP.Add(ap); |
1295 |
1120 |
|
|
1296 |
1121 |
|
artAddFavCanvas.Visibility = System.Windows.Visibility.Visible; |
1297 |
1122 |
|
artAddFavCanvas.Opacity = 1.0; |
1298 |
|
- |
canvasOn.Interval = new TimeSpan(0, 0, 1); // 3seconds |
|
1123 |
+ |
canvasOn.Interval = new TimeSpan(0, 0, 1); // 1seconds |
1299 |
1124 |
|
canvasOn.Tick += new EventHandler(canvasOn_Tick); |
1300 |
1125 |
|
canvasOn.Start(); |
1301 |
1126 |
|
} |
1302 |
1127 |
|
|
1303 |
|
- |
//listArtPref = listArticoliP; |
|
1128 |
+ |
|
1304 |
1129 |
|
feedListPreferiti.Visibility = System.Windows.Visibility.Visible; |
1305 |
1130 |
|
noFavoritesText.Visibility = System.Windows.Visibility.Collapsed; |
1306 |
1131 |
|
if (textCanvas.Visibility == System.Windows.Visibility.Visible) |
|
@@ -1309,59 +1134,7 @@ |
1309 |
1134 |
|
b.IsEnabled = false; |
1310 |
1135 |
|
} |
1311 |
1136 |
|
|
1312 |
|
- |
|
1313 |
|
- |
//feedListPreferiti.ItemsSource = listArticoliP; |
1314 |
1137 |
|
saveXML(); |
1315 |
|
- |
|
1316 |
|
- |
|
1317 |
|
- |
//phoneAppService.State["MyValue"] = feedListPreferiti.ItemsSource; |
1318 |
|
- |
|
1319 |
|
- |
|
1320 |
|
- |
|
1321 |
|
- |
|
1322 |
|
- |
} |
1323 |
|
- |
|
1324 |
|
- |
|
1325 |
|
- |
private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e) |
1326 |
|
- |
{ |
1327 |
|
- |
//object myValue; |
1328 |
|
- |
//if (phoneAppService.State.ContainsKey("MyValue")) |
1329 |
|
- |
//{ |
1330 |
|
- |
// if (phoneAppService.State.TryGetValue("MyValue", out myValue)) |
1331 |
|
- |
// { |
1332 |
|
- |
// feedListPreferiti.ItemsSource = listArticoliP; |
1333 |
|
- |
// feedListPreferiti.ItemsSource = (List<ArticoloPreferito>)myValue; |
1334 |
|
- |
|
1335 |
|
- |
// } |
1336 |
|
- |
//} |
1337 |
|
- |
|
1338 |
|
- |
//if (PageOrientation.Landscape == oLand) |
1339 |
|
- |
// grigliaTesto.Height = 370.00; |
1340 |
|
- |
|
1341 |
|
- |
checkConnection(); |
1342 |
|
- |
SystemTray.IsVisible = false; |
1343 |
|
- |
//feedListPreferiti.ItemsSource = listArticoliP; |
1344 |
|
- |
|
1345 |
|
- |
loadXML(); |
1346 |
|
- |
|
1347 |
|
- |
// WebClient is used instead of HttpWebRequest in this code sample because |
1348 |
|
- |
// the implementation is simpler and easier to use, and we do not need to use |
1349 |
|
- |
// advanced functionality that HttpWebRequest provides, such as the ability to send headers. |
1350 |
|
- |
WebClient webClient1 = new WebClient(); |
1351 |
|
- |
WebClient webClient3 = new WebClient(); |
1352 |
|
- |
|
1353 |
|
- |
// Subscribe to the DownloadStringCompleted event prior to downloading the RSS feed. |
1354 |
|
- |
webClient1.DownloadStringCompleted += new DownloadStringCompletedEventHandler(webClient1_DownloadStringCompleted); |
1355 |
|
- |
webClient3.DownloadStringCompleted += new DownloadStringCompletedEventHandler(webClient3_DownloadStringCompleted); |
1356 |
|
- |
|
1357 |
|
- |
// Download the RSS feed. DownloadStringAsync was used instead of OpenStreamAsync because we do not need |
1358 |
|
- |
// to leave a stream open, and we will not need to worry about closing the channel. |
1359 |
|
- |
webClient1.DownloadStringAsync(new System.Uri("http://tuttolavoro.indicitalia.it/RSS/app.xml")); |
1360 |
|
- |
webClient3.DownloadStringAsync(new System.Uri("http://www.wki.it/marketing/app/tuttolavoroApp_Rel_news.xml")); |
1361 |
|
- |
|
1362 |
|
- |
|
1363 |
|
- |
//if (listArticoliP.Count == 0) |
1364 |
|
- |
// feedListPreferiti.Visibility = System.Windows.Visibility.Collapsed; |
1365 |
1138 |
|
} |
1366 |
1139 |
|
|
1367 |
1140 |
|
|
|
@@ -1434,31 +1207,18 @@ |
1434 |
1207 |
|
grigliaTesto.Height = 420.00; |
1435 |
1208 |
|
boxNote.Visibility = System.Windows.Visibility.Visible; |
1436 |
1209 |
|
boxNote.Focus(); |
1437 |
|
- |
} |
1438 |
|
- |
|
1439 |
|
- |
private void boxNote_TextChanged(object sender, TextChangedEventArgs e) |
1440 |
|
- |
{ |
1441 |
|
- |
|
1442 |
|
- |
} |
1443 |
|
- |
|
1444 |
|
- |
private void boxNote_KeyDown(object sender, KeyEventArgs e) |
1445 |
|
- |
{ |
1446 |
|
- |
|
1447 |
|
- |
} |
1448 |
|
- |
|
1449 |
|
- |
private void boxNote_KeyUp(object sender, KeyEventArgs e) |
1450 |
|
- |
{ |
1451 |
|
- |
|
|
1210 |
+ |
ApplicationBar.IsVisible = false; |
1452 |
1211 |
|
} |
1453 |
1212 |
|
|
1454 |
1213 |
|
private void boxNote_GotFocus(object sender, RoutedEventArgs e) |
1455 |
1214 |
|
{ |
1456 |
1215 |
|
editNotePanel.Visibility = System.Windows.Visibility.Visible; |
|
1216 |
+ |
ApplicationBar.IsVisible = false; |
1457 |
1217 |
|
} |
1458 |
1218 |
|
|
1459 |
1219 |
|
private void boxNote_LostFocus(object sender, RoutedEventArgs e) |
1460 |
1220 |
|
{ |
1461 |
|
- |
//editNotePanel.Visibility = System.Windows.Visibility.Collapsed; |
|
1221 |
+ |
ApplicationBar.IsVisible = true; |
1462 |
1222 |
|
} |
1463 |
1223 |
|
|
1464 |
1224 |
|
private void deleteNoteButton_Click(object sender, RoutedEventArgs e) |
|
@@ -1488,10 +1248,11 @@ |
1488 |
1248 |
|
} |
1489 |
1249 |
|
|
1490 |
1250 |
|
editNotePanel.Visibility = System.Windows.Visibility.Collapsed; |
|
1251 |
+ |
ApplicationBar.IsVisible = true; |
1491 |
1252 |
|
|
1492 |
1253 |
|
deletedNoteCanvas.Visibility = System.Windows.Visibility.Visible; |
1493 |
1254 |
|
deletedNoteCanvas.Opacity = 1.0; |
1494 |
|
- |
canvasOn.Interval = new TimeSpan(0, 0, 1); // 3seconds |
|
1255 |
+ |
canvasOn.Interval = new TimeSpan(0, 0, 1); // 1seconds |
1495 |
1256 |
|
canvasOn.Tick += new EventHandler(canvasOn_Tick); |
1496 |
1257 |
|
canvasOn.Start(); |
1497 |
1258 |
|
} |
|
@@ -1517,10 +1278,11 @@ |
1517 |
1278 |
|
} |
1518 |
1279 |
|
|
1519 |
1280 |
|
editNotePanel.Visibility = System.Windows.Visibility.Collapsed; |
|
1281 |
+ |
ApplicationBar.IsVisible = true; |
1520 |
1282 |
|
|
1521 |
1283 |
|
savedNoteCanvas.Visibility = System.Windows.Visibility.Visible; |
1522 |
1284 |
|
savedNoteCanvas.Opacity = 1.0; |
1523 |
|
- |
canvasOn.Interval = new TimeSpan(0, 0, 1); // 3seconds |
|
1285 |
+ |
canvasOn.Interval = new TimeSpan(0, 0, 1); // 1seconds |
1524 |
1286 |
|
canvasOn.Tick += new EventHandler(canvasOn_Tick); |
1525 |
1287 |
|
canvasOn.Start(); |
1526 |
1288 |
|
//canvasOff.Start(); |
|
@@ -1535,9 +1297,6 @@ |
1535 |
1297 |
|
canvasOff.Interval = new TimeSpan(0, 0, 1); // 1seconds |
1536 |
1298 |
|
canvasOff.Tick += new EventHandler(canvasOff_Tick); |
1537 |
1299 |
|
canvasOff.Start(); |
1538 |
|
- |
|
1539 |
|
- |
|
1540 |
|
- |
//// Do Stuff here. |
1541 |
1300 |
|
} |
1542 |
1301 |
|
|
1543 |
1302 |
|
void canvasOff_Tick(object sender, EventArgs e) |
|
@@ -1553,14 +1312,10 @@ |
1553 |
1312 |
|
|
1554 |
1313 |
|
savedNoteCanvas.Visibility = System.Windows.Visibility.Collapsed; |
1555 |
1314 |
|
canvasOff.Stop(); |
1556 |
|
- |
|
1557 |
|
- |
|
1558 |
1315 |
|
} |
1559 |
1316 |
|
|
1560 |
1317 |
|
private void refreshButton_Click(object sender, RoutedEventArgs e) |
1561 |
1318 |
|
{ |
1562 |
|
- |
|
1563 |
|
- |
|
1564 |
1319 |
|
if (pivot.SelectedIndex == 0) |
1565 |
1320 |
|
{ |
1566 |
1321 |
|
WebClient webClient1 = new WebClient(); |
|
@@ -1575,36 +1330,19 @@ |
1575 |
1330 |
|
webClient3.DownloadStringAsync(new System.Uri("http://www.wki.it/marketing/app/tuttolavoroApp_Rel_news.xml")); |
1576 |
1331 |
|
} |
1577 |
1332 |
|
|
1578 |
|
- |
dt.Interval = new TimeSpan(0, 0, 0); // 3seconds |
|
1333 |
+ |
dt.Interval = new TimeSpan(0, 0, 0); // 0seconds |
1579 |
1334 |
|
dt.Tick += new EventHandler(dt_Tick); |
1580 |
1335 |
|
dt.Start(); |
1581 |
1336 |
|
dt2.Start(); |
1582 |
|
- |
|
1583 |
|
- |
|
1584 |
|
- |
|
1585 |
1337 |
|
} |
1586 |
1338 |
|
|
1587 |
1339 |
|
void dt_Tick(object sender, EventArgs e) |
1588 |
1340 |
|
{ |
1589 |
|
- |
|
1590 |
|
- |
// System.Windows.Threading.DispatcherTimer dt = new System.Windows.Threading.DispatcherTimer(); |
1591 |
|
- |
// dt.Interval = new TimeSpan(0, 0, 3); // 500 Milliseconds |
1592 |
|
- |
// dt.Tick += new EventHandler(dt_Tick); |
1593 |
|
- |
// dt.Start(); |
1594 |
|
- |
|
1595 |
|
- |
//CreateFadeInOutAnimation(1.0, 0.0).Begin(); |
1596 |
|
- |
|
1597 |
1341 |
|
loadingPanel.Visibility = System.Windows.Visibility.Visible; |
1598 |
1342 |
|
|
1599 |
|
- |
//if (pivot.SelectedIndex == 0) |
1600 |
|
- |
// feedListBoxNews1.Visibility = System.Windows.Visibility.Collapsed; |
1601 |
|
- |
|
1602 |
|
- |
//if (pivot.SelectedIndex == 2) |
1603 |
|
- |
// feedListBoxNews3.Visibility = System.Windows.Visibility.Collapsed; |
1604 |
|
- |
|
1605 |
1343 |
|
dt.Stop(); |
1606 |
1344 |
|
|
1607 |
|
- |
dt2.Interval = new TimeSpan(0, 0, 3); // 1seconds |
|
1345 |
+ |
dt2.Interval = new TimeSpan(0, 0, 3); // 3seconds |
1608 |
1346 |
|
dt2.Tick += new EventHandler(dt2_Tick); |
1609 |
1347 |
|
dt2.Start(); |
1610 |
1348 |
|
|
|
@@ -1615,9 +1353,7 @@ |
1615 |
1353 |
|
void dt2_Tick(object sender, EventArgs e) |
1616 |
1354 |
|
{ |
1617 |
1355 |
|
loadingPanel.Visibility = System.Windows.Visibility.Collapsed; |
1618 |
|
- |
//feedListBoxNews1.Visibility = System.Windows.Visibility.Visible; |
1619 |
|
- |
//feedListBoxNews3.Visibility = System.Windows.Visibility.Visible; |
1620 |
|
- |
|
|
1356 |
+ |
|
1621 |
1357 |
|
dt2.Stop(); |
1622 |
1358 |
|
} |
1623 |
1359 |
|
|
|
@@ -1626,89 +1362,40 @@ |
1626 |
1362 |
|
if ((e.Orientation & PageOrientation.Portrait) == (PageOrientation.Portrait)) |
1627 |
1363 |
|
{ |
1628 |
1364 |
|
ApplicationBar.IsVisible = true; |
1629 |
|
- |
|
1630 |
|
- |
//if (grigliaTesto.Width == 790.00) //se sei in full screen |
1631 |
|
- |
//{ |
1632 |
|
- |
// nomeAppTesto.Visibility = System.Windows.Visibility.Collapsed; |
1633 |
|
- |
// refreshButton.Visibility = System.Windows.Visibility.Collapsed; |
1634 |
|
- |
// notiziaCanvas.Visibility = System.Windows.Visibility.Visible; |
1635 |
|
- |
// titleCanvas.Visibility = System.Windows.Visibility.Collapsed; |
1636 |
|
- |
// dateCanvas.Visibility = System.Windows.Visibility.Collapsed; |
1637 |
|
- |
// ApplicationBar.IsVisible = false; |
1638 |
|
- |
// grigliaTesto.Margin = new Thickness(-10, 0, 0, 0); |
1639 |
|
- |
// pannelloNotizie.Width = 470.00; |
1640 |
|
- |
// grigliaTesto.Height = 790.00; |
1641 |
|
- |
// grigliaTesto.Width = 470.00; |
1642 |
|
- |
//} |
1643 |
|
- |
//else |
1644 |
|
- |
//{ |
1645 |
|
- |
pannelloNotizie.Width = 490.00; |
1646 |
|
- |
titleCanvas.Width = 450.00; |
1647 |
|
- |
titleCanvas.Height = 85.00; |
1648 |
|
- |
dateCanvas.Width = 450.00; |
1649 |
|
- |
grigliaTesto.Width = 490.00; |
1650 |
|
- |
grigliaTesto.Height = 580.00; |
1651 |
|
- |
grigliaTesto.Margin = new Thickness(-10, 0, 0, 0); |
1652 |
|
- |
webBrowser1.Margin = new Thickness(0, -23, 0, 0); |
1653 |
|
- |
if (boxNote.Visibility == System.Windows.Visibility.Visible) |
1654 |
|
- |
{ |
1655 |
|
- |
grigliaTesto.Height = 420.00; |
1656 |
|
- |
boxNote.Margin = new Thickness(0, 0, 10, 0); |
1657 |
|
- |
} |
1658 |
|
- |
//} |
1659 |
|
- |
|
|
1365 |
+ |
pannelloNotizie.Width = 490.00; |
|
1366 |
+ |
titleCanvas.Width = 450.00; |
|
1367 |
+ |
titleCanvas.Height = 85.00; |
|
1368 |
+ |
dateCanvas.Width = 450.00; |
|
1369 |
+ |
grigliaTesto.Width = 490.00; |
|
1370 |
+ |
grigliaTesto.Height = 580.00; |
|
1371 |
+ |
grigliaTesto.Margin = new Thickness(-10, 0, 0, 0); |
|
1372 |
+ |
webBrowser1.Margin = new Thickness(0, -23, 0, 0); |
|
1373 |
+ |
if (boxNote.Visibility == System.Windows.Visibility.Visible) |
|
1374 |
+ |
{ |
|
1375 |
+ |
grigliaTesto.Height = 420.00; |
|
1376 |
+ |
boxNote.Margin = new Thickness(0, 0, 10, 0); |
|
1377 |
+ |
} |
1660 |
1378 |
|
} |
1661 |
1379 |
|
|
1662 |
1380 |
|
if ((e.Orientation & PageOrientation.Landscape) == (PageOrientation.Landscape)) |
1663 |
1381 |
|
{ |
1664 |
1382 |
|
ApplicationBar.IsVisible = false; |
1665 |
|
- |
|
1666 |
|
- |
//if (grigliaTesto.Height == 790.00) //se sei in full screen |
1667 |
|
- |
//{ |
1668 |
|
- |
// nomeAppTesto.Visibility = System.Windows.Visibility.Collapsed; |
1669 |
|
- |
// refreshButton.Visibility = System.Windows.Visibility.Collapsed; |
1670 |
|
- |
// notiziaCanvas.Visibility = System.Windows.Visibility.Visible; |
1671 |
|
- |
// titleCanvas.Visibility = System.Windows.Visibility.Collapsed; |
1672 |
|
- |
// dateCanvas.Visibility = System.Windows.Visibility.Collapsed; |
1673 |
|
- |
// ApplicationBar.IsVisible = false; |
1674 |
|
- |
// grigliaTesto.Margin = new Thickness(-10, 0, 0, 0); |
1675 |
|
- |
// pannelloNotizie.Width = 790.00; |
1676 |
|
- |
// grigliaTesto.Height = 470.00; |
1677 |
|
- |
// grigliaTesto.Width = 790.00; |
1678 |
|
- |
//} |
1679 |
|
- |
//else |
1680 |
|
- |
//{ |
1681 |
|
- |
pannelloNotizie.Width = 790.00; |
1682 |
|
- |
titleCanvas.Width = 720.00; |
1683 |
|
- |
titleCanvas.Height = 57.00; |
1684 |
|
- |
dateCanvas.Width = 680.00; |
1685 |
|
- |
grigliaTesto.Width = 830.00; |
1686 |
|
- |
grigliaTesto.Height = 360.00; |
1687 |
|
- |
grigliaTesto.Margin = new Thickness(-15, 0, 0, 0); |
1688 |
|
- |
webBrowser1.Margin = new Thickness(0, -30, 0, 0); |
1689 |
|
- |
if (boxNote.Visibility == System.Windows.Visibility.Visible) |
1690 |
|
- |
{ |
1691 |
|
- |
grigliaTesto.Height = 220.00; |
1692 |
|
- |
boxNote.Margin = new Thickness(0, 0, 0, 0); |
1693 |
|
- |
|
1694 |
|
- |
} |
1695 |
|
- |
//} |
1696 |
|
- |
|
1697 |
|
- |
|
1698 |
|
- |
|
|
1383 |
+ |
pannelloNotizie.Width = 790.00; |
|
1384 |
+ |
titleCanvas.Width = 720.00; |
|
1385 |
+ |
titleCanvas.Height = 57.00; |
|
1386 |
+ |
dateCanvas.Width = 680.00; |
|
1387 |
+ |
grigliaTesto.Width = 830.00; |
|
1388 |
+ |
grigliaTesto.Height = 360.00; |
|
1389 |
+ |
grigliaTesto.Margin = new Thickness(-15, 0, 0, 0); |
|
1390 |
+ |
webBrowser1.Margin = new Thickness(0, -30, 0, 0); |
|
1391 |
+ |
if (boxNote.Visibility == System.Windows.Visibility.Visible) |
|
1392 |
+ |
{ |
|
1393 |
+ |
grigliaTesto.Height = 220.00; |
|
1394 |
+ |
boxNote.Margin = new Thickness(0, 0, 0, 0); |
|
1395 |
+ |
} |
1699 |
1396 |
|
} |
1700 |
1397 |
|
} |
1701 |
1398 |
|
|
1702 |
|
- |
//private void appBarFullScreen_Click(object sender, EventArgs e) |
1703 |
|
- |
//{ |
1704 |
|
- |
// titleCanvas.Visibility = System.Windows.Visibility.Collapsed; |
1705 |
|
- |
// dateCanvas.Visibility = System.Windows.Visibility.Collapsed; |
1706 |
|
- |
// ApplicationBar.IsVisible = false; |
1707 |
|
- |
// grigliaTesto.Height = 790.00; |
1708 |
|
- |
// grigliaTesto.Margin = new Thickness(-10, 10, 0, 0); |
1709 |
|
- |
|
1710 |
|
- |
//} |
1711 |
|
- |
|
1712 |
1399 |
|
|
1713 |
1400 |
|
private Storyboard CreateFadeInOutAnimation(double from, double to) |
1714 |
1401 |
|
{ |
|
@@ -1744,9 +1431,5 @@ |
1744 |
1431 |
|
|
1745 |
1432 |
|
|
1746 |
1433 |
|
|
1747 |
|
- |
|
1748 |
|
- |
|
1749 |
|
- |
|
1750 |
|
- |
|
1751 |
1434 |
|
} |
1752 |
1435 |
|
} |