Ejemplo n.º 1
0
        public override void Set(string name, bool elementValue)
        {
            switch (name.ToLower())
            {
            case "adjustmentnormal":
                this._adjustmentNormalElement = new RequestHistoricElementBool("adjustmentNormal", elementValue);
                break;

            case "adjustmentabnormal":
                this._adjustmentAbnormalElement = new RequestHistoricElementBool("adjustmentAbnormal", elementValue);
                break;

            case "adjustmentsplit":
                this._adjustmentSplitElement = new RequestHistoricElementBool("adjustmentSplit", elementValue);
                break;

            default:
                throw new ArgumentException(string.Format("BEmu.Request.Set: Element name {0} not supported", name));
            }
        }
Ejemplo n.º 2
0
 public override void Set(string name, bool elementValue)
 {
     switch (name.ToLower())
     {
         case "adjustmentnormal":
             this._adjustmentNormalElement = new RequestHistoricElementBool("adjustmentNormal", elementValue);
             break;
         case "adjustmentabnormal":
             this._adjustmentAbnormalElement = new RequestHistoricElementBool("adjustmentAbnormal", elementValue);
             break;
         case "adjustmentsplit":
             this._adjustmentSplitElement = new RequestHistoricElementBool("adjustmentSplit", elementValue);
             break;
         default:
             throw new ArgumentException(string.Format("BEmu.Request.Set: Element name {0} not supported", name));
     }
 }