private void AjouterGenre() { View.Genre fenGenre = new View.Genre(unMedia); fenGenre.ShowDialog(); if (fenGenre.valRetour != null) { String str = ""; foreach (Class.Genre gen in fenGenre.valRetour) { if (gen.chk) { if (str == "") { str += gen.nom; } else { str += ";" + gen.nom; } } } lGenres = fenGenre.valRetour; listeGenre = str; } }
public Genre(Class.Media med, View.Genre gen) { unMedia = med; LoadData(); vGenre = gen; }