You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
notus/notus/Biblioteque_de_Class/Theme.cs

40 lines
966 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Biblioteque_de_Class
{
internal class Theme
{
public string Nom { get; set; }
List<string> ListCouleur;
public Theme(string nom, List<string> listCouleur)
{
Nom = nom;
ListCouleur = listCouleur;
}
public override string ToString() => $"nom : {Nom}\n";
public List<string> GetColorList()
{
return ListCouleur;
}
public void ChangeColor(string color, string newColor)
{
int longueur = 0;
for (longueur = ListCouleur.Count; longueur != 0; longueur-- )
{
if (ListCouleur[longueur] == color)
{
ListCouleur[longueur] = newColor;
}
}
}
}
}