From fd704f8b0ab235e77d832a976e068d437c8f1654 Mon Sep 17 00:00:00 2001 From: Corentin LEMAIRE Date: Sat, 13 May 2023 10:47:14 +0200 Subject: [PATCH] Fix major issues --- Sources/Console/Program.cs | 19 ------------------- Sources/Linaris/AlbumPage.xaml.cs | 9 --------- Sources/Linaris/MainPage.xaml.cs | 21 ++++----------------- Sources/Model/IDataManager.cs | 2 +- Sources/Model/Stub/Stub.cs | 2 -- 5 files changed, 5 insertions(+), 48 deletions(-) diff --git a/Sources/Console/Program.cs b/Sources/Console/Program.cs index 0806a11..1d3bfa7 100644 --- a/Sources/Console/Program.cs +++ b/Sources/Console/Program.cs @@ -2,23 +2,4 @@ Console.WriteLine("---"); -// See https://aka.ms/new-console-template for more information - -/*Album a = new Album("Adios Bahamas", "album1.jpg", "Népal"); -Album a1 = new Album("Fenêtre sur Rue", "album3.jpg", "HugoTSR"); -Album a2 = new Album("Dans la Légende", "album8.jpg", "PNL"); - -List lst = new List { a1, a2, a }; - -foreach (Album album in lst) -{ - Console.WriteLine($"Nom de l'album : " + album.Nom); - - Console.WriteLine($"Nom du fichier : " + album.File_Name); - - Console.WriteLine($"Artiste : " + album.Artiste); - - Console.WriteLine($"-------------------------"); -}*/ - diff --git a/Sources/Linaris/AlbumPage.xaml.cs b/Sources/Linaris/AlbumPage.xaml.cs index 821b100..adde9b9 100644 --- a/Sources/Linaris/AlbumPage.xaml.cs +++ b/Sources/Linaris/AlbumPage.xaml.cs @@ -6,13 +6,4 @@ public partial class AlbumPage : ContentPage { InitializeComponent(); } - - /* async void Button_Clicked(object sender, EventArgs e) - { - var random = new Random(); - var color = String.Format("#{0:X6}", random.Next(0x1000000)); - bouton.BackgroundColor = Color.FromArgb(color); - await bouton.RelRotateTo(360, 1000); - bouton.Rotation = 0; - }*/ } \ No newline at end of file diff --git a/Sources/Linaris/MainPage.xaml.cs b/Sources/Linaris/MainPage.xaml.cs index de3a24b..5a08d5f 100644 --- a/Sources/Linaris/MainPage.xaml.cs +++ b/Sources/Linaris/MainPage.xaml.cs @@ -2,7 +2,6 @@ public partial class MainPage : ContentPage { - // int count = 0; public MainPage() { @@ -10,23 +9,11 @@ public partial class MainPage : ContentPage } - /*private void OnCounterClicked(object sender, EventArgs e) - { - count++; - - if (count == 1) - CounterBtn.Text = $"Clicked {count} time"; - else - CounterBtn.Text = $"Clicked {count} times"; - - SemanticScreenReader.Announce(CounterBtn.Text); - }*/ - - /*async public void Go_Home() - { - await Navigation.PushAsync(new MainPage()); + async public void Go_Home() + { + await Navigation.PushAsync(new MainPage()); - }*/ + } } diff --git a/Sources/Model/IDataManager.cs b/Sources/Model/IDataManager.cs index 4799ef5..895bf1d 100644 --- a/Sources/Model/IDataManager.cs +++ b/Sources/Model/IDataManager.cs @@ -2,5 +2,5 @@ public interface IDataManager { - //méthodes style IEnumerable RecupGFroupe(); + } \ No newline at end of file diff --git a/Sources/Model/Stub/Stub.cs b/Sources/Model/Stub/Stub.cs index 9a60c86..23abbec 100644 --- a/Sources/Model/Stub/Stub.cs +++ b/Sources/Model/Stub/Stub.cs @@ -33,8 +33,6 @@ public class Stub : IDataManager Playlist Playlist1 = new Playlist("Playlist1", "desc1", "url1.png"); Playlist Playlist2 = new Playlist("Playlist2", "desc2", "url2.png"); - Playlist Playlist3 = new Playlist("Playlist3", "desc3", "url3.png"); - Playlist Playlist4 = new Playlist("Playlist4", "desc4", "url4.png"); Playlist1.AddTitle(new CustomTitle("custom1", "url1.png", "info1", "chemin1")); Playlist1.AddTitle(new CustomTitle("custom2", "url2.png", "info2", "chemin2"));