Ejemplo n.º 1
0
 public void Set(CalcFormulaMethod method, string tableName, string fieldName, bool reverseSign = false, params CalcFormulaTableFilterLine[] tableFilter)
 {
     Method      = method;
     TableName   = tableName;
     FieldName   = fieldName;
     ReverseSign = reverseSign;
     TableFilter.AddRange(tableFilter);
 }
Ejemplo n.º 2
0
        public void Set(CalcFormula calcFormula)
        {
            Method      = calcFormula?.Method;
            TableName   = calcFormula?.TableName;
            FieldName   = calcFormula?.FieldName;
            ReverseSign = calcFormula?.ReverseSign ?? false;

            TableFilter.Clear();
            TableFilter.AddRange(calcFormula?.TableFilter ?? Enumerable.Empty <CalcFormulaTableFilterLine>());
        }