Example #1
0
        public void SetParameter(int index, Parameter parameter, bool invalide = true)
        {
            parameters[index] = parameter;

            this.conditionals.AddRange(parameter.GetValidators());

            if (invalide)
                Invalide();
        }
 public SmartCondition(int id, string name, string help)
 {
     parameters = new Parameter[3];
     this.ID = id;
     this.help = help;
     this.name = name;
     for (int i = 0; i < 3;++i )
         parameters[i] = new NullParameter();
 }
Example #3
0
 public SmartElement(int ID, string name, string readable, int parameters_count)
 {
     this.ID = ID;
     this.name = name;
     this._readable = readable;
     parameters = new Parameter[parameters_count];
     for (int i = 0; i < parameters_count; ++i)
         SetParameter(i, new NullParameter(), false);
     Invalide();
 }
 private void SetParameter(int index, Parameter pram)
 {
     this.parameters[index] = pram;
 }
Example #5
0
 public SmartElement()
 {
     parameters = new Parameter[6];
     for (int i = 0; i < 6; ++i)
         SetParameter(i, new NullParameter(), false);
 }