Exemple #1
0
        private void TrierParCategorie()
        {
            List <Item> items = TrieurArticle.TrierParCategorie(categorie, User);

            AfficheurItems.AfficherItems(items);
            SelectionnerArticle(items);
        }
Exemple #2
0
        private void AfficherParMotCle()
        {
            List <Item> items = new List <Item>();

            items.AddRange(TrieurArticle.TrierParMotCle(motCle, User));

            AfficheurItems.AfficherItems(items);
            SelectionnerArticle(items);
        }
        private void AfficherArticlesFavoris()
        {
            List <Item> itemsAAfficher = new List <Item>();

            itemsAAfficher.AddRange(User.RecupererArticlesFavoris());
            Console.WriteLine("Voici la liste des articles : \n");
            AfficheurItems.AfficherItems(itemsAAfficher);
            SelectionnerArticle(itemsAAfficher);
            Console.Clear();
        }