72 lines
1,005 B
C#
72 lines
1,005 B
C#
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<Sequenceur,string> data = new Dictionary<Sequenceur, string>();
|
|
|
|
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<Ligne> lignes = new List<Ligne>();
|
|
|
|
|
|
|
|
public List<Ligne> Lignes {
|
|
get {
|
|
return lignes;
|
|
}
|
|
}
|
|
|
|
public SequenceurMaitre ()
|
|
{
|
|
lignes.Add(new Ligne());
|
|
}
|
|
|
|
public XmlElement Save ()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
public static SequenceurMaitre Load (XmlElement doc)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
|
|
}
|
|
}
|