Exemple #1
0
 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);
 }
Exemple #2
0
        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);
            }
        }
Exemple #3
0
 public void update()
 {
     this.valeur = ReadIO.ReadOutputType(this.type, this.numero);
 }
Exemple #4
0
 public void update()
 {
     this.valeurPrec = this.valeur;
     this.valeur     = ReadIO.ReadInputType(type, numero);
 }