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