|
@@ -723,7 +723,7 @@ |
723 |
723 |
|
{ |
724 |
724 |
|
credits.Visibility = Visibility.Visible; |
725 |
725 |
|
blackCanvas.Visibility = Visibility.Visible; |
726 |
|
- |
replay.Visibility = Visibility.Visible; |
|
726 |
+ |
//replay.Visibility = Visibility.Visible; |
727 |
727 |
|
} |
728 |
728 |
|
|
729 |
729 |
|
|
|
@@ -1779,7 +1779,7 @@ |
1779 |
1779 |
|
} |
1780 |
1780 |
|
|
1781 |
1781 |
|
|
1782 |
|
- |
replay.Visibility = Visibility.Collapsed; |
|
1782 |
+ |
//replay.Visibility = Visibility.Collapsed; |
1783 |
1783 |
|
|
1784 |
1784 |
|
} |
1785 |
1785 |
|
|
|
@@ -1791,9 +1791,82 @@ |
1791 |
1791 |
|
|
1792 |
1792 |
|
private void closeBut_Click(object sender, RoutedEventArgs e) |
1793 |
1793 |
|
{ |
|
1794 |
+ |
pulisciBottoni(); |
|
1795 |
+ |
|
|
1796 |
+ |
String target = "init"; //this.attSchermata.bottoni[0].targetID; |
|
1797 |
+ |
|
|
1798 |
+ |
mappaSchermate.TryGetValue(target, out proxSchermata); |
|
1799 |
+ |
|
|
1800 |
+ |
//Recuperiamo l'immagine attuale |
|
1801 |
+ |
String nomeImg = proxSchermata.topImage; |
|
1802 |
+ |
string uriImg = String.Format("ms-appx:///images/{0}", nomeImg); |
|
1803 |
+ |
|
|
1804 |
+ |
try |
|
1805 |
+ |
{ |
|
1806 |
+ |
|
|
1807 |
+ |
imgTop.Source = new BitmapImage(new Uri(uriImg, UriKind.Absolute)); |
|
1808 |
+ |
Boolean b = true; |
|
1809 |
+ |
} |
|
1810 |
+ |
catch { } |
|
1811 |
+ |
|
|
1812 |
+ |
|
|
1813 |
+ |
//Recuperiamo il testo attuale |
|
1814 |
+ |
String testo = proxSchermata.text; |
|
1815 |
+ |
testoTop.Text = testo; |
|
1816 |
+ |
|
|
1817 |
+ |
topPanel.DataContext = proxSchermata; |
|
1818 |
+ |
|
|
1819 |
+ |
//Recuperiamo i dati relativi ai bottoni |
|
1820 |
+ |
int numBottoni = proxSchermata.nBottoni; |
|
1821 |
+ |
switch (numBottoni) |
|
1822 |
+ |
{ |
|
1823 |
+ |
case 1: |
|
1824 |
+ |
buttonPanel1.Visibility = Visibility.Visible; |
|
1825 |
+ |
String testoBottone11 = proxSchermata.bottoni[0].testo; |
|
1826 |
+ |
textB11.Text = testoBottone11; |
|
1827 |
+ |
buttonPanel1.DataContext = proxSchermata; // Per il binding |
|
1828 |
+ |
attSchermata = proxSchermata; |
|
1829 |
+ |
break; |
|
1830 |
+ |
case 2: |
|
1831 |
+ |
buttonPanel2.Visibility = Visibility.Visible; |
|
1832 |
+ |
String testoBottone21 = proxSchermata.bottoni[0].testo; |
|
1833 |
+ |
textB21.Text = testoBottone21; |
|
1834 |
+ |
String testoBottone22 = proxSchermata.bottoni[1].testo; |
|
1835 |
+ |
textB22.Text = testoBottone22; |
|
1836 |
+ |
buttonPanel2.DataContext = proxSchermata; // Per il binding |
|
1837 |
+ |
attSchermata = proxSchermata; |
|
1838 |
+ |
break; |
|
1839 |
+ |
case 3: |
|
1840 |
+ |
buttonPanel3.Visibility = Visibility.Visible; |
|
1841 |
+ |
String testoBottone31 = proxSchermata.bottoni[0].testo; |
|
1842 |
+ |
textB31.Text = testoBottone31; |
|
1843 |
+ |
String testoBottone32 = proxSchermata.bottoni[1].testo; |
|
1844 |
+ |
textB32.Text = testoBottone32; |
|
1845 |
+ |
String testoBottone33 = proxSchermata.bottoni[2].testo; |
|
1846 |
+ |
textB33.Text = testoBottone33; |
|
1847 |
+ |
buttonPanel3.DataContext = proxSchermata; // Per il binding |
|
1848 |
+ |
attSchermata = proxSchermata; |
|
1849 |
+ |
break; |
|
1850 |
+ |
case 4: |
|
1851 |
+ |
buttonPanel4.Visibility = Visibility.Visible; |
|
1852 |
+ |
String testoBottone41 = proxSchermata.bottoni[0].testo; |
|
1853 |
+ |
textB41.Text = testoBottone41; |
|
1854 |
+ |
String testoBottone42 = proxSchermata.bottoni[1].testo; |
|
1855 |
+ |
textB42.Text = testoBottone42; |
|
1856 |
+ |
String testoBottone43 = proxSchermata.bottoni[2].testo; |
|
1857 |
+ |
textB43.Text = testoBottone43; |
|
1858 |
+ |
String testoBottone44 = proxSchermata.bottoni[3].testo; |
|
1859 |
+ |
textB44.Text = testoBottone44; |
|
1860 |
+ |
buttonPanel4.DataContext = proxSchermata; // Per il binding |
|
1861 |
+ |
attSchermata = proxSchermata; |
|
1862 |
+ |
break; |
|
1863 |
+ |
|
|
1864 |
+ |
} |
|
1865 |
+ |
|
|
1866 |
+ |
|
1794 |
1867 |
|
credits.Visibility = Visibility.Collapsed; |
1795 |
1868 |
|
blackCanvas.Visibility = Visibility.Collapsed; |
1796 |
|
- |
replay.Visibility = Visibility.Visible; |
|
1869 |
+ |
//replay.Visibility = Visibility.Visible; |
1797 |
1870 |
|
} |
1798 |
1871 |
|
|
1799 |
1872 |
|
|