public Output(string nom, int numero, string type, string code) { this.nom = nom; this.code = code; this.numero = numero; this.type = type; this.valeur = ReadIO.ReadOutputType(type, numero); }
public static object ReadOutputType(string type, int numero) { switch (type) { case "bool": return(ReadIO.ReadBitOutput(numero)); case "float": return(ReadIO.ReadFloatOutput(numero)); default: return(null); } }
public void update() { this.valeur = ReadIO.ReadOutputType(this.type, this.numero); }
public void update() { this.valeurPrec = this.valeur; this.valeur = ReadIO.ReadInputType(type, numero); }