diff --git a/Sources/Linaris.sln b/Sources/Linaris.sln index 8627edb..589cd71 100644 --- a/Sources/Linaris.sln +++ b/Sources/Linaris.sln @@ -9,7 +9,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Console", "Console\Console. EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestUnitaires", "TestUnitaires\TestUnitaires.csproj", "{8B0671CF-1302-4244-8837-916E632007E2}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Model", "Model\Model.csproj", "{275B609D-6073-4122-B9F8-1373F76565B2}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Model", "Model\Model.csproj", "{275B609D-6073-4122-B9F8-1373F76565B2}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/Sources/Linaris/FooterPage.xaml.cs b/Sources/Linaris/FooterPage.xaml.cs index 78d2d9d..c4141ad 100644 --- a/Sources/Linaris/FooterPage.xaml.cs +++ b/Sources/Linaris/FooterPage.xaml.cs @@ -139,7 +139,7 @@ public partial class FooterPage : ContentView, INotifyPropertyChanged music.Volume = Volume; } - private void TimeSlider_ValueChanged(object sender, ValueChangedEventArgs e) + public void TimeSlider_ValueChanged(object sender, EventArgs e) { if ((TimeSlider.Value * music.Duration.TotalSeconds) - music.Position.TotalSeconds <= 1 && (TimeSlider.Value * music.Duration.TotalSeconds) - music.Position.TotalSeconds >= -1) { @@ -151,7 +151,7 @@ public partial class FooterPage : ContentView, INotifyPropertyChanged Duration = music.Duration.ToString(@"hh\:mm\:ss"); } - private void Music_StateChanged(object sender, MediaStateChangedEventArgs e) + public void Music_StateChanged(object sender, EventArgs e) { if (music.CurrentState == MediaElementState.Paused || music.CurrentState == MediaElementState.Stopped) { diff --git a/Sources/TestUnitaires/TU_Manager.cs b/Sources/TestUnitaires/TU_Manager.cs index 3e5b4e7..b59b65a 100644 --- a/Sources/TestUnitaires/TU_Manager.cs +++ b/Sources/TestUnitaires/TU_Manager.cs @@ -141,6 +141,7 @@ namespace TestUnitaires try { Manager m = new(new LinqXmlSerialization(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Data"))); + m.AddAlbum(album); m.AddAlbum(album2); m.AddArtist(artist); diff --git a/Sources/TestUnitaires/TestUnitaires.csproj b/Sources/TestUnitaires/TestUnitaires.csproj index 6462710..377c4fb 100644 --- a/Sources/TestUnitaires/TestUnitaires.csproj +++ b/Sources/TestUnitaires/TestUnitaires.csproj @@ -1,7 +1,7 @@  - net7.0 + net7.0 enable enable @@ -11,10 +11,10 @@ - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + runtime; build; native; contentfiles; analyzers; buildtransitive all @@ -25,5 +25,4 @@ - - + \ No newline at end of file