Beispiel #1
0
 /// <summary>
 /// Set raw values
 /// </summary>
 /// <param name="values">values</param>
 public void SetValues(IEnumerable <byte> values)
 {
     // clear values
     Values.Clear();
     // add values
     Values.AddRange(values);
 }
 public BenchThreadParams(ISimpleDictionary simpleDictionary, int stepDelay, List <int> values, bool workloadWrite)
 {
     SimpleDictionary = simpleDictionary;
     StepDelay        = stepDelay;
     Values.AddRange(values);
     WorkloadWrite = workloadWrite;
 }
Beispiel #3
0
        public Rule(string raw)
        {
            var elements = raw.Split(':');

            Name = elements[0].Trim();
            Values.AddRange(elements[1].Split("or").Select(e => e.Trim()));
        }
Beispiel #4
0
 public InList(ISqlExpression exp1, bool isNot, params ISqlExpression[] values)
     : base(exp1, isNot, SqlQuery.Precedence.Comparison)
 {
     if (values != null && values.Length > 0)
     {
         Values.AddRange(values);
     }
 }
Beispiel #5
0
 public InList(ISqlExpression exp1, bool isNot, IEnumerable <ISqlExpression> values)
     : base(exp1, isNot, SqlQuery.Precedence.Comparison)
 {
     if (values != null)
     {
         Values.AddRange(values);
     }
 }
Beispiel #6
0
 public void Load(SettingsStorage storage)
 {
     Name   = storage.GetValue <string>("Name");
     Number = storage.GetValue <int>("Number");
     Values.AddRange(storage.GetValue <SettingsStorage[]>("Values").Select(s => s.Load <ImportEnumMappingWindow.MappingValue>()));
     DefaultValue = storage.GetValue <object>("DefaultValue");
     Format       = storage.GetValue <string>("Format");
 }
Beispiel #7
0
        /// <summary>
        /// Create an argument with an optional array of values
        /// </summary>
        ///
        /// <param name="name">The argument name</param>
        /// <param name="values">The array of values</param>
        public ShellArgument(string name, IEnumerable <string> values)
        {
            Name = name;

            if (values != null)
            {
                Values.AddRange(values);
            }
        }
Beispiel #8
0
 /// <summary>
 /// Load settings.
 /// </summary>
 /// <param name="storage">Settings storage.</param>
 public void Load(SettingsStorage storage)
 {
     Name       = storage.GetValue <string>(nameof(Name));
     IsExtended = storage.GetValue <bool>(nameof(IsExtended));
     //Number = storage.GetValue<int>(nameof(Number));
     Values.AddRange(storage.GetValue <SettingsStorage[]>(nameof(Values)).Select(s => PersistableHelper.Load <FieldMappingValue>(s)));
     DefaultValue = storage.GetValue <string>(nameof(DefaultValue));
     Format       = storage.GetValue <string>(nameof(Format));
     IsEnabled    = storage.GetValue(nameof(IsEnabled), IsEnabled);
 }
Beispiel #9
0
 private void DrawChart()
 {
     if (Spectrum != null)
     {
         Values.Clear();
         Values.AddRange(Spectrum.Skip(1).Select(v => new ObservableValue(v)).ToList());
         Labels.Clear();
         Labels.AddRange(FreqSpan?.Skip(1).Select(x => x.ToString()).ToArray());
     }
 }
 public ReportParameter(string name, string[] values, bool visible)
 {
     Name = name;
     if (values == null)
     {
         throw new ArgumentNullException("values");
     }
     Values.AddRange(values);
     Visible = visible;
 }
Beispiel #11
0
 public ArrayValue(params string[] args)
 {
     if (args != null)
     {
         Values.AddRange(args);
     }
     else
     {
         Values.Add(null);
     }
 }
        //private string[] lab;

        private void Update()
        {
            double[]             stock = InfoArticulos.valoresStock;
            IEnumerable <double> m     = stock;

            Values.AddRange(m);
            Lab.AddRange(InfoArticulos.valoresFecha);
            Chart.Update(true);
            //DataContext = this;
            //lab = InfoArticulos.valoresFecha;
        }
Beispiel #13
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="pJunctionOperator"></param>
        /// <param name="pValueOperator"></param>
        /// <param name="pValues"></param>
        public Filter(JunctionOperator pJunctionOperator,
                      ValueOperator pValueOperator,
                      params T[] pValues)
        {
            _junctionOperator = pJunctionOperator;
            _valueOperator    = pValueOperator;

            if (pValues != null)
            {
                Values.AddRange(pValues);
            }
        }
Beispiel #14
0
        public void Deserialize(NomadObject root)
        {
            var values = root.GetChild(ValuesId);
            var fixups = root.GetChild(FixupsId);

            if (values != null)
            {
                Values.AddRange(values.Children);
            }
            if (fixups != null)
            {
                ReadFixups(fixups);
            }
        }
Beispiel #15
0
        public EnumTypeAnalyzer(INamedTypeSymbol type, params object[] values)
        {
            Type = type;

            if (Type != null)
            {
                Fields.AddRange(Type.GetMembers().Where(m => m.Kind == SymbolKind.Field).Cast <IFieldSymbol>());
                _Symbols = Fields.ToDictionary(field => field.ConstantValue);
                Values.AddRange(values.Select(val => _Symbols[val]));
            }
            else
            {
                Values.AddRange(values.Cast <IFieldSymbol>());
            }
        }
Beispiel #16
0
        protected override void OnClick()
        {
            base.OnClick();

            var wnd = new ImportEnumMappingWindow {
                EnumType = EnumType
            };

            wnd.Values.AddRange(Values.Select(v => v.Clone()));
            wnd.Title = wnd.Title.Put(FieldName);

            if (!wnd.ShowModal(this))
            {
                return;
            }

            Values.Clear();
            Values.AddRange(wnd.Values);

            RefreshTitle();
        }
Beispiel #17
0
        private void AddValues(object filter)
        {
            if (filter == null)
            {
                return;
            }
            else if (filter is string)
            {
                Values.Add(filter);
            }
            else if (filter is IEnumerable <string> || filter is IEnumerable <object> )
            {
                IEnumerable <object> filterValues = filter as IEnumerable <string>;
                filterValues = filterValues == null ? filter as IEnumerable <object> : filterValues;

                Values.AddRange(filterValues);
            }
            else
            {
                Values.Add(filter);
            }
        }
        public SourceTableSliceTestAggregation(IEnumerable <SourceTableSliceTest> input)
        {
            foreach (var i in input)
            {
                Count++;
                if (format == SourceTableSliceType.undefined)
                {
                    format = i.format;
                }

                ValueCountRange.Learn(i.Values.Count);
                Values.AddRange(i.Values);

                IsUniformFormat &= i.IsUniformFormat;
                IsDistinctValue &= i.IsDistinctValue;
                IsNoEmptyValue  &= i.IsNoEmptyValue;

                if (i.IsUniformFormat)
                {
                    IsUniformFormatCounter++;
                }
                if (i.IsDistinctValue)
                {
                    IsDistinctValueCounter++;
                }
                if (i.IsNoEmptyValue)
                {
                    IsNoEmptyCounter++;
                }
            }

            DistinctValues = Values.GetUnique();

            //  IsUniformFormat = //IsUniformFormatCounter == Count;
            //  IsDistinctValue = IsDistinctValueCounter == Count;
            //   IsNoEmptyValue = IsNoEmptyCounter == Count;
        }
 public object Convert(IList <object> values, Type targetType, object parameter, CultureInfo culture)
 {
     Values.AddRange(values);
     return(values.FirstOrDefault());
 }
Beispiel #20
0
 public SensorDataValue(DateTimeOffset time, IEnumerable <T> values)
 {
     Date = time.ToUnixTimeMilliseconds();
     Values.AddRange(values);
 }
Beispiel #21
0
 internal void RestorePruned()
 {
     Values.AddRange(Pruned);
     Pruned.Clear();
 }
Beispiel #22
0
 internal void RestoreGuess()
 {
     Values.AddRange(RemovedByGuess);
     RemovedByGuess.Clear();
 }
Beispiel #23
0
 public SelectElementBuilder AddValues(string value, params string[] values)
 {
     Values.Add(value);
     Values.AddRange(values);
     return(this);
 }
Beispiel #24
0
 public MenuDetails(IEnumerable <Types.MenuDetail> values)
 {
     Values.AddRange(values);
 }
Beispiel #25
0
 /// <summary>
 /// Adds the elements of the specified array to the end of the <see cref="IColList"/>.
 /// </summary>
 /// <param name="values">The array whose elements should be added to the end of the
 /// <see cref="IColList"/>.</param>
 public override void Add(params Expression <Func <object> >[] values)
 {
     Values.AddRange(values.Select(x => SqlBuilder.Instance.Col(x)));
 }
Beispiel #26
0
 public OutputRow(params object[] values)
 {
     Values.AddRange(values ?? new object[0]);
 }
Beispiel #27
0
 public void Merge(ParameterValues parameterValues)
 {
     Values.AddRange(parameterValues.Values);
     Percentiles.AddRange(parameterValues.Percentiles);
 }
Beispiel #28
0
 /// <summary>
 /// Adds the elements of the specified collection to the end of the <see cref="IColList"/>.
 /// </summary>
 /// <param name="values">The collection whose elements should be added to the end of the
 /// <see cref="IColList"/>.</param>
 public override void Add(IEnumerable <Expression <Func <object> > > values)
 {
     Values.AddRange(values.Select(x => SqlBuilder.Instance.Col(x)));
 }
 internal override void parse(string str, ref int pos, ReleaseVersion release, int len, ConcurrentDictionary <int, BaseClassIfc> dictionary)
 {
     base.parse(str, ref pos, release, len, dictionary);
     Values.AddRange(ParserSTEP.StripListLink(str, ref pos, len).ConvertAll(x => dictionary[x] as IfcIrregularTimeSeriesValue));
 }
Beispiel #30
0
 public SelectElementBuilder AddValues(IEnumerable <string> values)
 {
     Values.AddRange(values);
     return(this);
 }