using System; using System.Collections.Generic; using System.Xml; namespace DMX2 { public class SequenceurMaitre { public class Ligne { public Ligne(){} string nom; int duree = -1; Dictionary data = new Dictionary(); public string Nom { get { return nom; } set { nom = value; } } public int Duree { get { return duree; } set { duree = value; } } public string this [Sequenceur index] { get { string value; if(!data.TryGetValue(index, out value)) return string.Empty; return value; } set { data[index] = value; } } } List lignes = new List(); public List Lignes { get { return lignes; } } public SequenceurMaitre () { lignes.Add(new Ligne()); } public XmlElement Save () { return null; } public static SequenceurMaitre Load (XmlElement doc) { return null; } } }