diff --git a/Sources/Linaris/AlbumPage.xaml b/Sources/Linaris/AlbumPage.xaml index 79bcdc6..1aab1d9 100644 --- a/Sources/Linaris/AlbumPage.xaml +++ b/Sources/Linaris/AlbumPage.xaml @@ -35,7 +35,7 @@ Style="{StaticResource SousTitre}"> - + diff --git a/Sources/Linaris/App.xaml.cs b/Sources/Linaris/App.xaml.cs index 936af33..e0f54a0 100644 --- a/Sources/Linaris/App.xaml.cs +++ b/Sources/Linaris/App.xaml.cs @@ -18,9 +18,9 @@ public partial class App : Application var Window = base.CreateWindow(activationState); - Window.Created += (sender, eventArgs) => + Window.Stopped += (sender, eventArgs) => { - Manager.LoadSerialization(); + Manager.SaveSerialization(); }; const int newHeight = 900; diff --git a/Sources/Linaris/FooterPage.xaml.cs b/Sources/Linaris/FooterPage.xaml.cs index 568762f..97ebfa0 100644 --- a/Sources/Linaris/FooterPage.xaml.cs +++ b/Sources/Linaris/FooterPage.xaml.cs @@ -26,6 +26,7 @@ public partial class FooterPage : ContentView public void PlayButton_Clicked(object sender, EventArgs e) { + Play(); /*string url = ((FileImageSource)Play.Source).File; if (url == "play.png") { @@ -43,6 +44,11 @@ public partial class FooterPage : ContentView }*/ } + public void Play() + { + if ((Application.Current as App).Manager.CurrentPlaying == null) return; + } + public void RewindButton_Clicked(Object sender, EventArgs e) { /*audioFile.Position = 0; diff --git a/Sources/Linaris/InfoTitlePage.xaml b/Sources/Linaris/InfoTitlePage.xaml index e4a16f5..88a5662 100644 --- a/Sources/Linaris/InfoTitlePage.xaml +++ b/Sources/Linaris/InfoTitlePage.xaml @@ -13,13 +13,13 @@ - +