/// <summary> /// Adds the given element to the list of elements inside this <see cref="HoconValue"/>. /// </summary> /// <param name="value">The element to add to the list.</param> public void AppendValue(IHoconElement value) { Values.Add(value); }
public void Add(T item) { Values.Add(item); }
public void GiveValue(int newValue) { Values.Add(newValue); }
/// <summary> /// Stores the variable in this symbol table with a specific value /// </summary> /// <param name="parameter"></param> /// <param name="value"></param> public void setParameter(Parameter parameter, Values.IValue value) { Variables.IVariable actual = parameter.createActual(); actual.Value = value; Values.Add(actual); }
public void Add(string key, string value) { Values.Add(key, value); SetFieldValue(ValueToQueryString()); }
/// <summary> /// Initializes a new instance of the <see cref="CompositeEnum"/> class. /// </summary> /// <param name="key">The key.</param> /// <param name="isFlag">if set to <c>true</c> [is flag].</param> public CompositeEnum(object key, bool isFlag) : this(isFlag) { Key = key; Values.Add(this); }
public override UIElement GetUIElement() { if (AvailableScripts == null) { AvailableScripts = new ObservableCollection <string>(); } if (Values.Count == 0) { Values.Add(""); } if (Values.Count < 2) { Values.Add(""); } StackPanel sp = new StackPanel(); Button b = new Button(); b.Content = Localization.TranslationManager.Instance.Translate("ScriptEditor"); b.Click += b_Click; sp.Children.Add(b); ComboBox cb = CreateComboBox(new string[] { }, Values[0]); cb.DropDownOpened += cb_DropDownOpened; cb.DropDownClosed += cb_DropDownClosed; cb.IsEditable = true; sp.Children.Add(cb); b = new Button(); b.Content = Localization.TranslationManager.Instance.Translate("LoadSettings"); b.Click += b_Click2; sp.Children.Add(b); Binding binding = new Binding(); binding.Source = AvailableScripts; BindingOperations.SetBinding(cb, ComboBox.ItemsSourceProperty, binding); var g = new Grid(); sp.Children.Add(g); var props = GetPropertyValues(); if (props.Count > 0) { var grid = new Grid(); ColumnDefinition columnDefinition1 = new ColumnDefinition(); ColumnDefinition columnDefinition2 = new ColumnDefinition(); columnDefinition1.Width = new GridLength(80); columnDefinition2.Width = new GridLength(1, GridUnitType.Star); grid.ColumnDefinitions.Add(columnDefinition1); grid.ColumnDefinitions.Add(columnDefinition2); foreach (var prop in props) { RowDefinition rowDefinition = new RowDefinition(); rowDefinition.Height = GridLength.Auto; grid.RowDefinitions.Add(rowDefinition); var tbk = new TextBlock(); tbk.Text = prop.Name; grid.Children.Add(tbk); Grid.SetRow(tbk, grid.RowDefinitions.Count - 1); Grid.SetColumn(tbk, 0); if (prop.Control == "CheckBox") { var tbe = new CheckBox(); tbe.IsChecked = bool.Parse(prop.Value); grid.Children.Add(tbe); Grid.SetRow(tbe, grid.RowDefinitions.Count - 1); Grid.SetColumn(tbe, 1); } else if (prop.Control == "TextBox") { var tbe = new TextBox(); tbe.Text = prop.Value; grid.Children.Add(tbe); Grid.SetRow(tbe, grid.RowDefinitions.Count - 1); Grid.SetColumn(tbe, 1); } else if (prop.Control == "DatePicker") { var tbe = new DatePicker(); tbe.HorizontalAlignment = HorizontalAlignment.Center; tbe.SelectedDate = DateTime.ParseExact(prop.Value, "yyyy-MM-dd", CultureInfo.InvariantCulture).Date; grid.Children.Add(tbe); Grid.SetRow(tbe, grid.RowDefinitions.Count - 1); Grid.SetColumn(tbe, 1); } } g.Children.Add(grid); } return(sp); }
private void readXMLItems(XMLItem rootItem, Values parent) { foreach (XMLItem item in rootItem) { StringValue newValue = null; // String name = item.TagName; if (String.Compare(name, "item", true) == 0) { name = rootItem.IndexOf(item).ToString(); } // if(item.Value != null) { String value = item.Value.ToString(); newValue = new StringValue(name, value); } // this.readXMLItems(item, (Values)newValue); // parent.Add(name, newValue); } }
public double Update(double value) { if (double.IsInfinity(value) || double.IsNaN(value)) { return(value); } Values.Add(value); while (Values.Count > SampleLimit) { Values.RemoveAt(0); } //if (Values.Count > 5) Mean = Values.OrderBy(e => e).Skip(1).Take(Values.Count - 2).Average(); //else Mean = Values.Average(); //Mean = Values.Average(); double sum = 0; double count = 0; double max = double.MinValue; double min = double.MaxValue; for (int i = 0; i < Values.Count; i++) { double val = Values[i]; if (val > max) { if (max != double.MinValue) { sum += max; count++; } max = val; } else if (val < min) { if (min != double.MaxValue) { sum += min; count++; } min = val; } else { sum += val; count++; } } if (count == 0) { if (max != double.MinValue) { sum += max; count++; } if (min != double.MaxValue) { sum += min; count++; } } Mean = sum / count; return(Mean); }
public override MixDatabaseData ParseModel(MixCmsContext _context = null, IDbContextTransaction _transaction = null) { if (string.IsNullOrEmpty(Id)) { Id = Guid.NewGuid().ToString(); CreatedDateTime = DateTime.UtcNow; Priority = Repository.Count(m => m.MixDatabaseName == MixDatabaseName && m.Specificulture == Specificulture, _context, _transaction).Data + 1; } Values = Values ?? MixDatabaseDataValues.UpdateViewModel .Repository.GetModelListBy(a => a.DataId == Id && a.Specificulture == Specificulture, _context, _transaction).Data.OrderBy(a => a.Priority).ToList(); Fields = MixDatabaseColumns.UpdateViewModel.Repository.GetModelListBy(f => f.MixDatabaseId == MixDatabaseId, _context, _transaction).Data; if (string.IsNullOrEmpty(MixDatabaseName)) { MixDatabaseName = _context.MixDatabase.First(m => m.Id == MixDatabaseId)?.Name; } foreach (var field in Fields.OrderBy(f => f.Priority)) { var val = Values.FirstOrDefault(v => v.MixDatabaseColumnId == field.Id); if (val == null) { val = new MixDatabaseDataValues.UpdateViewModel( new MixDatabaseDataValue() { MixDatabaseColumnId = field.Id, MixDatabaseColumnName = field.Name, } , _context, _transaction) { StringValue = field.DefaultValue, Priority = field.Priority, Column = field }; Values.Add(val); } val.Priority = field.Priority; val.MixDatabaseName = MixDatabaseName; if (Data[val.MixDatabaseColumnName] != null) { if (val.Column.DataType == MixDataType.Reference) { var arr = Data[val.MixDatabaseColumnName].Value <JArray>(); foreach (JObject objData in arr) { string id = objData["id"]?.Value <string>(); // if have id => update data, else add new if (!string.IsNullOrEmpty(id)) { //var getData = Repository.GetSingleModel(m => m.Id == id && m.Specificulture == Specificulture, _context, _transaction); //if (getData.IsSucceed) //{ // getData.Data.Data = objData; // RefData.Add(getData.Data); //} } else { RefData.Add(new UpdateViewModel() { Specificulture = Specificulture, MixDatabaseId = field.ReferenceId.Value, Data = objData }); } } } else { ParseModelValue(Data[val.MixDatabaseColumnName], val); } } else { Data.Add(ParseValue(val)); } } return(base.ParseModel(_context, _transaction));; }
private void accumulateWithDefaultSettings(Values userValues, Values defaultValues) { foreach (KeyValuePair<String, StringValue> kvValue in defaultValues) { if (!userValues.ContainsKey(kvValue.Key)) { userValues.Add(kvValue.Key, new StringValue(kvValue.Key, kvValue.Value.Value)); } // StringValue userValue = userValues[kvValue.Key]; this.accumulateWithDefaultSettings(userValue, kvValue.Value); } }
public void AddValue(EnumValueDefinition value) { Values.Add(value); }
public void Add(string item) { Values.Add(item); }
public void Add(string key, object value) { Values.Add(key, value); }
public void Add(string key, string value) { Keys.Add(key); Values.Add(value); }
public override bool Parse(IItemFactory itemFactory, ITextProvider text, ITokenStream stream) { //if (IsDeclaration(text, stream)) if (stream.Current.Type == TokenType.Identifier || stream.Current.Type == TokenType.OpenInterpolation) { var name = itemFactory.CreateSpecific <PropertyName>(this, text, stream); if (name.Parse(itemFactory, text, stream)) { Name = name; Children.Add(name); } if (stream.Current.Type == TokenType.Colon) { Colon = Children.AddCurrentAndAdvance(stream, SassClassifierType.Punctuation); } while (!IsValueTerminator(stream.Current.Type)) { ParseItem value; if (itemFactory.TryCreateParsedOrDefault(this, text, stream, out value)) { Values.Add(value); Children.Add(value); // bind all unknown values as property values if (value.ClassifierType == SassClassifierType.Default && value is TokenItem) { value.ClassifierType = SassClassifierType.PropertyValue; } } } // nested property block support if (stream.Current.Type == TokenType.OpenCurlyBrace) { var block = itemFactory.CreateSpecific <NestedPropertyBlock>(this, text, stream); if (block.Parse(itemFactory, text, stream)) { Children.Add(block); } } if (stream.Current.Type == TokenType.Bang) { var modifier = new ImportanceModifier(); if (modifier.Parse(itemFactory, text, stream)) { Modifier = modifier; Children.Add(modifier); } } if (stream.Current.Type == TokenType.Semicolon) { Semicolon = Children.AddCurrentAndAdvance(stream, SassClassifierType.Punctuation); } } return(Children.Count > 0); }
public void AddValue(EnumValueDefinition value) { NameValidator.ValidateName(value.Name, "enum"); Values.Add(value); }
public void AddValue(string value) { Values.Add(value); }
public override MixAttributeSetData ParseModel(MixCmsContext _context = null, IDbContextTransaction _transaction = null) { if (string.IsNullOrEmpty(Id)) { Id = Guid.NewGuid().ToString(); CreatedDateTime = DateTime.UtcNow; Priority = Repository.Count(m => m.AttributeSetName == AttributeSetName && m.Specificulture == Specificulture, _context, _transaction).Data + 1; } if (string.IsNullOrEmpty(AttributeSetName)) { AttributeSetName = _context.MixAttributeSet.First(m => m.Id == AttributeSetId)?.Name; } if (AttributeSetId == 0) { AttributeSetId = _context.MixAttributeSet.First(m => m.Name == AttributeSetName)?.Id ?? 0; } Values = Values ?? MixAttributeSetValues.UpdateViewModel .Repository.GetModelListBy(a => a.DataId == Id && a.Specificulture == Specificulture, _context, _transaction).Data.OrderBy(a => a.Priority).ToList(); Fields = MixAttributeFields.UpdateViewModel.Repository.GetModelListBy(f => f.AttributeSetId == AttributeSetId, _context, _transaction).Data; foreach (var field in Fields.OrderBy(f => f.Priority)) { var val = Values.FirstOrDefault(v => v.AttributeFieldId == field.Id); if (val == null) { val = new MixAttributeSetValues.UpdateViewModel( new MixAttributeSetValue() { AttributeFieldId = field.Id, AttributeFieldName = field.Name, } , _context, _transaction) { StringValue = field.DefaultValue, Priority = field.Priority, Field = field }; Values.Add(val); } val.Priority = field.Priority; val.AttributeSetName = AttributeSetName; if (Data[val.AttributeFieldName] != null) { if (val.Field.DataType == MixEnums.MixDataType.Reference) { var arr = Data[val.AttributeFieldName].Value <JArray>(); if (arr != null) { foreach (JObject objData in arr) { string id = objData["id"]?.Value <string>(); // if have id => update data, else add new if (!string.IsNullOrEmpty(id)) { //var getData = Repository.GetSingleModel(m => m.Id == id && m.Specificulture == Specificulture, _context, _transaction); //if (getData.IsSucceed) //{ // getData.Data.Data = objData; // RefData.Add(getData.Data); //} } else { RefData.Add(new FormViewModel() { Specificulture = Specificulture, AttributeSetId = field.ReferenceId.Value, Data = objData }); } } } } else { ParseModelValue(Data[val.AttributeFieldName], val); } } else { Data.Add(ParseValue(val)); } } // Save Edm html var getAttrSet = Mix.Cms.Lib.ViewModels.MixAttributeSets.ReadViewModel.Repository.GetSingleModel(m => m.Name == AttributeSetName, _context, _transaction); var getEdm = Lib.ViewModels.MixTemplates.UpdateViewModel.GetTemplateByPath(getAttrSet.Data.EdmTemplate, Specificulture); var edmField = Values.FirstOrDefault(f => f.AttributeFieldName == "edm"); if (edmField != null && getEdm.IsSucceed && !string.IsNullOrEmpty(getEdm.Data.Content)) { string body = getEdm.Data.Content; foreach (var prop in Data.Properties()) { body = body.Replace($"[[{prop.Name}]]", Data[prop.Name].Value <string>()); } var edmFile = new FileViewModel() { Content = body, Extension = ".html", FileFolder = "edms", Filename = $"{getAttrSet.Data.EdmSubject}-{Id}" }; if (FileRepository.Instance.SaveWebFile(edmFile)) { Data["edm"] = edmFile.WebPath; edmField.StringValue = edmFile.WebPath; } } //End save edm return(base.ParseModel(_context, _transaction));; }
public override MixAttributeSetData ParseModel(MixCmsContext _context = null, IDbContextTransaction _transaction = null) { if (string.IsNullOrEmpty(Id)) { Id = Guid.NewGuid().ToString(); CreatedDateTime = DateTime.UtcNow; Priority = Repository.Count(m => m.AttributeSetName == AttributeSetName && m.Specificulture == Specificulture, _context, _transaction).Data + 1; } if (string.IsNullOrEmpty(AttributeSetName)) { AttributeSetName = _context.MixAttributeSet.First(m => m.Id == AttributeSetId)?.Name; } if (AttributeSetId == 0) { AttributeSetId = _context.MixAttributeSet.First(m => m.Name == AttributeSetName)?.Id ?? 0; } Values ??= MixAttributeSetValues.UpdateViewModel .Repository.GetModelListBy(a => a.DataId == Id && a.Specificulture == Specificulture).Data.OrderBy(a => a.Priority).ToList(); Fields ??= MixAttributeFields.UpdateViewModel.Repository.GetModelListBy(f => f.AttributeSetId == AttributeSetId, _context, _transaction).Data; foreach (var field in Fields.OrderBy(f => f.Priority)) { var val = Values.FirstOrDefault(v => v.AttributeFieldId == field.Id); if (val == null) { val = new MixAttributeSetValues.UpdateViewModel( new MixAttributeSetValue() { AttributeFieldId = field.Id, AttributeFieldName = field.Name, } , _context, _transaction) { StringValue = field.DefaultValue, Priority = field.Priority, Field = field }; Values.Add(val); } else { val.LastModified = DateTime.UtcNow; } val.Status = Status; val.Priority = field.Priority; val.AttributeSetName = AttributeSetName; if (Obj[val.AttributeFieldName] != null) { if (val.Field.DataType == MixDataType.Reference) { var arr = Obj[val.AttributeFieldName].Value <JArray>(); if (arr != null) { foreach (JObject objData in arr) { string id = objData["id"]?.Value <string>(); // if have id => update data, else add new if (!string.IsNullOrEmpty(id)) { var getData = Repository.GetSingleModel(m => m.Id == id && m.Specificulture == Specificulture, _context, _transaction); if (getData.IsSucceed) { getData.Data.Obj = objData["obj"].Value <JObject>(); RefData.Add(getData.Data); } } else { RefData.Add(new ImportViewModel() { Specificulture = Specificulture, AttributeSetId = field.ReferenceId.Value, Obj = objData["obj"].Value <JObject>() }); } } } } else { val.ToModelValue(Obj[val.AttributeFieldName]); } } else { Obj.Add(val.Model.ToJProperty(_context, _transaction)); } } return(base.ParseModel(_context, _transaction));; }
/// <summary> /// Adds an item to underlying <see cref="Values"/> collection. /// </summary> public void AddToValues(object value) { Values.Add((TValue)value); }
/// <summary>Add a value.</summary> /// <param name="value">The value to add</param> public void Add(object value) { Values.Add(value); }
/// <summary> /// Stores the variable in this symbol table with a specific value /// </summary> /// <param name="variable"></param> /// <param name="value"></param> public void setVariable(Variables.IVariable variable, Values.IValue value) { variable.Value = value; Values.Add(variable); }
/// <summary> /// Adds a value to the dictionary. /// </summary> /// <param name="key"></param> /// <param name="value"></param> public void AddValue(string key, string value) { Values.Add(key, value); }
public IndependentVariableBool() { DataType = SupportedDataType.Bool; Values.Add(true); Values.Add(false); }
//public SimpleElementArray(string name) : base(name) { } public void Add(String value) { Values.Add(value); }
public void Add(SCIMRepresentationAttribute value) { Values.Add(value); value.Parent = this; }
/// <summary>Sets the value for this argument.</summary> /// <param name="value">The value to set.</param> public override void SetValue(object value) { Values.Add(value as string); }
public void AddValue(Value value) { Values.Add(value); }
/// <summary> /// Adds a value to the <see cref="IDelete"/>. /// </summary> /// <param name="value">The value to add to the <see cref="IDelete"/>.</param> public override void Add(Expression <Func <object> > value) { Values.Add(SqlBuilder.Instance.Alias(value)); }
/// <summary> /// Creates a fresh list of elements inside this <see cref="HoconValue"/> /// and adds the given value to the list. /// </summary> /// <param name="value">The element to add to the list.</param> public void NewValue(IHoconElement value) { Values.Clear(); Values.Add(value); }
private void Read300(string[] lines) { CultureInfo culture = new CultureInfo("en-US"); List <string> Llines = lines.ToList(); Llines.RemoveAll(t => String.IsNullOrWhiteSpace(t) || t.StartsWith("[")); int i = 0; Values.Add("Version.AppVersion", new PP3entry("Version.AppVersion", GetValue(Llines[i]), null, null)); i++; FileVersion = Convert.ToInt32(GetValue(Llines[i])); i++; Values.Add("General.Rank", new PP3entry("General.Rank", Convert.ToInt32(GetValue(Llines[i])), 0, 0)); i++; Values.Add("General.ColorLabel", new PP3entry("General.ColorLabel", Convert.ToInt32(GetValue(Llines[i])), 0, 0)); i++; Values.Add("General.InTrash", new PP3entry("General.InTrash", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("Exposure.Auto", new PP3entry("Exposure.Auto", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("Exposure.Clip", new PP3entry("Exposure.Clip", Convert.ToDouble(GetValue(Llines[i]), culture), 0d, 0.9999d)); i++; Compensation = Convert.ToDouble(GetValue(Llines[i]), culture); i++; Values.Add("Exposure.Brightness", new PP3entry("Exposure.Brightness", Convert.ToInt32(GetValue(Llines[i])), -100, 100)); i++; Values.Add("Exposure.Contrast", new PP3entry("Exposure.Contrast", Convert.ToInt32(GetValue(Llines[i])), -100, 100)); i++; Values.Add("Exposure.Saturation", new PP3entry("Exposure.Saturation", Convert.ToInt32(GetValue(Llines[i])), -100, 100)); i++; Values.Add("Exposure.Black", new PP3entry("Exposure.Black", Convert.ToInt32(GetValue(Llines[i])), -16384, 32768)); i++; Values.Add("Exposure.HighlightCompr", new PP3entry("Exposure.HighlightCompr", Convert.ToInt32(GetValue(Llines[i])), 0, 500)); i++; Values.Add("Exposure.HighlightComprThreshold", new PP3entry("Exposure.HighlightComprThreshold", Convert.ToInt32(GetValue(Llines[i])), 0, 100)); i++; Values.Add("Exposure.ShadowCompr", new PP3entry("Exposure.ShadowCompr", Convert.ToInt32(GetValue(Llines[i])), 0, 100)); i++; Values.Add("Exposure.Curve", new PP3entry("Exposure.Curve", PP3Curve.GetCurve(GetValue(Llines[i])), null, null)); i++; Values.Add("ChannelMixer.Red", new PP3entry("ChannelMixer.Red", PP3Curve.GetCurve(GetValue(Llines[i])), null, null)); i++; Values.Add("ChannelMixer.Green", new PP3entry("ChannelMixer.Green", PP3Curve.GetCurve(GetValue(Llines[i])), null, null)); i++; Values.Add("ChannelMixer.Blue", new PP3entry("ChannelMixer.Blue", PP3Curve.GetCurve(GetValue(Llines[i])), null, null)); i++; Values.Add("LuminanceCurve.Brightness", new PP3entry("LuminanceCurve.Brightness", Convert.ToInt32(GetValue(Llines[i])), -100, 100)); i++; Values.Add("LuminanceCurve.Contrast", new PP3entry("LuminanceCurve.Contrast", Convert.ToInt32(GetValue(Llines[i])), -100, 100)); i++; Values.Add("LuminanceCurve.Saturation", new PP3entry("LuminanceCurve.Saturation", Convert.ToInt32(GetValue(Llines[i])), -100, 100)); i++; Values.Add("LuminanceCurve.AvoidColorClipping", new PP3entry("LuminanceCurve.AvoidColorClipping", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("LuminanceCurve.SaturationLimiter", new PP3entry("LuminanceCurve.SaturationLimiter", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("LuminanceCurve.SaturationLimit", new PP3entry("LuminanceCurve.SaturationLimit", Convert.ToDouble(GetValue(Llines[i]), culture), 0d, 100d)); i++; Values.Add("LuminanceCurve.LCurve", new PP3entry("LuminanceCurve.LCurve", PP3Curve.GetCurve(GetValue(Llines[i])), null, null)); i++; Values.Add("LuminanceCurve.aCurve", new PP3entry("LuminanceCurve.aCurve", PP3Curve.GetCurve(GetValue(Llines[i])), null, null)); i++; Values.Add("LuminanceCurve.bCurve", new PP3entry("LuminanceCurve.bCurve", PP3Curve.GetCurve(GetValue(Llines[i])), null, null)); i++; Values.Add("Sharpening.Enabled", new PP3entry("Sharpening.Enabled", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("Sharpening.Method", new PP3entry("Sharpening.Method", GetValue(Llines[i]), null, null)); i++; Values.Add("Sharpening.Radius", new PP3entry("Sharpening.Radius", Convert.ToDouble(GetValue(Llines[i]), culture), 0.3d, 3d)); i++; Values.Add("Sharpening.Amount", new PP3entry("Sharpening.Amount", Convert.ToInt32(GetValue(Llines[i])), 1, 1000)); i++; Values.Add("Sharpening.Threshold", new PP3entry("Sharpening.Threshold", Convert.ToInt32(GetValue(Llines[i])), 0, 16384)); i++; Values.Add("Sharpening.OnlyEdges", new PP3entry("Sharpening.OnlyEdges", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("Sharpening.EdgedetectionRadius", new PP3entry("Sharpening.EdgedetectionRadius", Convert.ToDouble(GetValue(Llines[i]), culture), 0.5d, 2.5d)); i++; Values.Add("Sharpening.EdgeTolerance", new PP3entry("Sharpening.EdgeTolerance", Convert.ToInt32(GetValue(Llines[i])), 10, 10000)); i++; Values.Add("Sharpening.HalocontrolEnabled", new PP3entry("Sharpening.HalocontrolEnabled", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("Sharpening.HalocontrolAmount", new PP3entry("Sharpening.HalocontrolAmount", Convert.ToInt32(GetValue(Llines[i])), 1, 100)); i++; Values.Add("Sharpening.DeconvRadius", new PP3entry("Sharpening.DeconvRadius", Convert.ToDouble(GetValue(Llines[i]), culture), 0.5d, 2.5d)); i++; Values.Add("Sharpening.DeconvAmount", new PP3entry("Sharpening.DeconvAmount", Convert.ToInt32(GetValue(Llines[i])), 0, 100)); i++; Values.Add("Sharpening.DeconvDamping", new PP3entry("Sharpening.DeconvDamping", Convert.ToInt32(GetValue(Llines[i])), 0, 100)); i++; Values.Add("Sharpening.DeconvIterations", new PP3entry("Sharpening.DeconvIterations", Convert.ToInt32(GetValue(Llines[i])), 5, 100)); i++; Values.Add("Vibrance.Enabled", new PP3entry("Vibrance.Enabled", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("Vibrance.Pastels", new PP3entry("Vibrance.Pastels", Convert.ToInt32(GetValue(Llines[i])), -100, 100)); i++; Values.Add("Vibrance.Saturated", new PP3entry("Vibrance.Saturated", Convert.ToInt32(GetValue(Llines[i])), -100, 100)); i++; Values.Add("Vibrance.PSThreshold", new PP3entry("Vibrance.PSThreshold", Convert.ToInt32(GetValue(Llines[i])), 0, 100)); i++; Values.Add("Vibrance.ProtectSkins", new PP3entry("Vibrance.ProtectSkins", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("Vibrance.AvoidColorShift", new PP3entry("Vibrance.AvoidColorShift", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("Vibrance.PastSatTog", new PP3entry("Vibrance.PastSatTog", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("SharpenEdge.Enabled", new PP3entry("SharpenEdge.Enabled", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("SharpenEdge.Passes", new PP3entry("SharpenEdge.Passes", Convert.ToInt32(GetValue(Llines[i])), 1, 4)); i++; Values.Add("SharpenEdge.Strength", new PP3entry("SharpenEdge.Strength", Convert.ToInt32(GetValue(Llines[i])), 0, 100)); i++; Values.Add("SharpenEdge.ThreeChannels", new PP3entry("SharpenEdge.ThreeChannels", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("SharpenMicro.Enabled", new PP3entry("SharpenMicro.Enabled", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("SharpenMicro.Matrix", new PP3entry("SharpenMicro.Matrix", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("SharpenMicro.Strength", new PP3entry("SharpenMicro.Strength", Convert.ToDouble(GetValue(Llines[i]), culture), 0d, 100d)); i++; Values.Add("SharpenMicro.Uniformity", new PP3entry("SharpenMicro.Uniformity", Convert.ToDouble(GetValue(Llines[i]), culture), 0d, 100d)); i++; Values.Add("ColorBoost.Amount", new PP3entry("ColorBoost.Amount", Convert.ToInt32(GetValue(Llines[i])), 0, 0)); i++; Values.Add("ColorBoost.AvoidColorClipping", new PP3entry("ColorBoost.AvoidColorClipping", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("ColorBoost.SaturationLimiter", new PP3entry("ColorBoost.SaturationLimiter", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("ColorBoost.SaturationLimit", new PP3entry("ColorBoost.SaturationLimit", Convert.ToInt32(GetValue(Llines[i])), 75, 75)); i++; Values.Add("WhiteBalance.Setting", new PP3entry("WhiteBalance.Setting", GetValue(Llines[i]), null, null)); i++; Values.Add("WhiteBalance.Temperature", new PP3entry("WhiteBalance.Temperature", Convert.ToInt32(GetValue(Llines[i])), 1200, 12000)); i++; Values.Add("WhiteBalance.Green", new PP3entry("WhiteBalance.Green", Convert.ToDouble(GetValue(Llines[i]), culture), 0.02d, 5d)); i++; Values.Add("ColorShift.ChannelA", new PP3entry("ColorShift.ChannelA", Convert.ToInt32(GetValue(Llines[i])), 0, 0)); i++; Values.Add("ColorShift.ChannelB", new PP3entry("ColorShift.ChannelB", Convert.ToInt32(GetValue(Llines[i])), 0, 0)); i++; Values.Add("ImpulseDenoising.Enabled", new PP3entry("ImpulseDenoising.Enabled", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("ImpulseDenoising.Threshold", new PP3entry("ImpulseDenoising.Threshold", Convert.ToInt32(GetValue(Llines[i])), 0, 100)); i++; Values.Add("Defringing.Enabled", new PP3entry("Defringing.Enabled", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("Defringing.Radius", new PP3entry("Defringing.Radius", Convert.ToDouble(GetValue(Llines[i]), culture), 0.5d, 5d)); i++; Values.Add("Defringing.Threshold", new PP3entry("Defringing.Threshold", Convert.ToInt32(GetValue(Llines[i])), 0, 100)); i++; Values.Add("DirectionalPyramidDenoising.Enabled", new PP3entry("DirectionalPyramidDenoising.Enabled", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("DirectionalPyramidDenoising.Luma", new PP3entry("DirectionalPyramidDenoising.Luma", Convert.ToInt32(GetValue(Llines[i])), 0, 100)); i++; Values.Add("DirectionalPyramidDenoising.Chroma", new PP3entry("DirectionalPyramidDenoising.Chroma", Convert.ToInt32(GetValue(Llines[i])), 0, 100)); i++; Values.Add("DirectionalPyramidDenoising.Gamma", new PP3entry("DirectionalPyramidDenoising.Gamma", Convert.ToDouble(GetValue(Llines[i]), culture), 1d, 3d)); i++; Values.Add("DirectionalPyramidDenoising.LumCurve", new PP3entry("DirectionalPyramidDenoising.LumCurve", PP3Curve.GetCurve(GetValue(Llines[i])), null, null)); i++; Values.Add("DirectionalPyramidDenoising.ChromCurve", new PP3entry("DirectionalPyramidDenoising.ChromCurve", PP3Curve.GetCurve(GetValue(Llines[i])), null, null)); i++; Values.Add("LuminanceDenoising.Enabled", new PP3entry("LuminanceDenoising.Enabled", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("LuminanceDenoising.Radius", new PP3entry("LuminanceDenoising.Radius", Convert.ToDouble(GetValue(Llines[i]), culture), 2.5d, 2.5d)); i++; Values.Add("LuminanceDenoising.EdgeTolerance", new PP3entry("LuminanceDenoising.EdgeTolerance", Convert.ToInt32(GetValue(Llines[i])), 1500, 1500)); i++; Values.Add("ChrominanceDenoising.Enabled", new PP3entry("ChrominanceDenoising.Enabled", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("ChrominanceDenoising.Amount", new PP3entry("ChrominanceDenoising.Amount", Convert.ToInt32(GetValue(Llines[i])), 20, 20)); i++; Values.Add("ShadowsAndHighlights.Enabled", new PP3entry("ShadowsAndHighlights.Enabled", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("ShadowsAndHighlights.HighQuality", new PP3entry("ShadowsAndHighlights.HighQuality", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("ShadowsAndHighlights.Highlights", new PP3entry("ShadowsAndHighlights.Highlights", Convert.ToInt32(GetValue(Llines[i])), 0, 100)); i++; Values.Add("ShadowsAndHighlights.HighlightTonalWidth", new PP3entry("ShadowsAndHighlights.HighlightTonalWidth", Convert.ToInt32(GetValue(Llines[i])), 10, 100)); i++; Values.Add("ShadowsAndHighlights.Shadows", new PP3entry("ShadowsAndHighlights.Shadows", Convert.ToInt32(GetValue(Llines[i])), 0, 100)); i++; Values.Add("ShadowsAndHighlights.ShadowTonalWidth", new PP3entry("ShadowsAndHighlights.ShadowTonalWidth", Convert.ToInt32(GetValue(Llines[i])), 10, 100)); i++; Values.Add("ShadowsAndHighlights.LocalContrast", new PP3entry("ShadowsAndHighlights.LocalContrast", Convert.ToInt32(GetValue(Llines[i])), 0, 100)); i++; Values.Add("ShadowsAndHighlights.Radius", new PP3entry("ShadowsAndHighlights.Radius", Convert.ToInt32(GetValue(Llines[i])), 5, 100)); i++; Values.Add("Crop.Enabled", new PP3entry("Crop.Enabled", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("Crop.X", new PP3entry("Crop.X", Convert.ToInt32(GetValue(Llines[i])), 0, 0)); i++; Values.Add("Crop.Y", new PP3entry("Crop.Y", Convert.ToInt32(GetValue(Llines[i])), 0, 0)); i++; Values.Add("Crop.W", new PP3entry("Crop.W", Convert.ToInt32(GetValue(Llines[i])), 0, 0)); i++; Values.Add("Crop.H", new PP3entry("Crop.H", Convert.ToInt32(GetValue(Llines[i])), 0, 0)); i++; Values.Add("Crop.FixedRatio", new PP3entry("Crop.FixedRatio", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("Crop.Ratio", new PP3entry("Crop.Ratio", GetValue(Llines[i]), null, null)); i++; Values.Add("Crop.Orientation", new PP3entry("Crop.Orientation", GetValue(Llines[i]), null, null)); i++; Values.Add("Crop.Guide", new PP3entry("Crop.Guide", GetValue(Llines[i]), null, null)); i++; Values.Add("CoarseTransformation.Rotate", new PP3entry("CoarseTransformation.Rotate", Convert.ToInt32(GetValue(Llines[i])), 0, 0)); i++; Values.Add("CoarseTransformation.HorizontalFlip", new PP3entry("CoarseTransformation.HorizontalFlip", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("CoarseTransformation.VerticalFlip", new PP3entry("CoarseTransformation.VerticalFlip", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("CommonPropertiesforTransformations.AutoFill", new PP3entry("CommonPropertiesforTransformations.AutoFill", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("Rotation.Degree", new PP3entry("Rotation.Degree", Convert.ToDouble(GetValue(Llines[i]), culture), -45d, 45d)); i++; Values.Add("Distortion.Amount", new PP3entry("Distortion.Amount", Convert.ToDouble(GetValue(Llines[i]), culture), -0.5d, 0.5d)); i++; Values.Add("Distortion.UseLensFun", new PP3entry("Distortion.UseLensFun", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("Perspective.Horizontal", new PP3entry("Perspective.Horizontal", Convert.ToInt32(GetValue(Llines[i])), -100, 100)); i++; Values.Add("Perspective.Vertical", new PP3entry("Perspective.Vertical", Convert.ToInt32(GetValue(Llines[i])), -100, 100)); i++; Values.Add("CACorrection.Red", new PP3entry("CACorrection.Red", Convert.ToDouble(GetValue(Llines[i]), culture), -0.005d, 0.005d)); i++; Values.Add("CACorrection.Blue", new PP3entry("CACorrection.Blue", Convert.ToDouble(GetValue(Llines[i]), culture), -0.005d, 0.005d)); i++; Values.Add("VignettingCorrection.Amount", new PP3entry("VignettingCorrection.Amount", Convert.ToInt32(GetValue(Llines[i])), -100, 100)); i++; Values.Add("VignettingCorrection.Radius", new PP3entry("VignettingCorrection.Radius", Convert.ToInt32(GetValue(Llines[i])), 0, 100)); i++; Values.Add("VignettingCorrection.Strength", new PP3entry("VignettingCorrection.Strength", Convert.ToInt32(GetValue(Llines[i])), 1, 100)); i++; Values.Add("VignettingCorrection.CenterX", new PP3entry("VignettingCorrection.CenterX", Convert.ToInt32(GetValue(Llines[i])), -100, 100)); i++; Values.Add("VignettingCorrection.CenterY", new PP3entry("VignettingCorrection.CenterY", Convert.ToInt32(GetValue(Llines[i])), -100, 100)); i++; Values.Add("HLRecovery.Enabled", new PP3entry("HLRecovery.Enabled", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("HLRecovery.Method", new PP3entry("HLRecovery.Method", GetValue(Llines[i]), null, null)); i++; Values.Add("Resize.Enabled", new PP3entry("Resize.Enabled", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("Resize.Scale", new PP3entry("Resize.Scale", Convert.ToDouble(GetValue(Llines[i]), culture), 0.01d, 4d)); i++; Values.Add("Resize.AppliesTo", new PP3entry("Resize.AppliesTo", GetValue(Llines[i]), null, null)); i++; Values.Add("Resize.Method", new PP3entry("Resize.Method", GetValue(Llines[i]), null, null)); i++; Values.Add("Resize.DataSpecified", new PP3entry("Resize.DataSpecified", Convert.ToInt32(GetValue(Llines[i])), 0, 0)); i++; Values.Add("Resize.Width", new PP3entry("Resize.Width", Convert.ToInt32(GetValue(Llines[i])), 0, 0)); i++; Values.Add("Resize.Height", new PP3entry("Resize.Height", Convert.ToInt32(GetValue(Llines[i])), 0, 0)); i++; Values.Add("ColorManagement.InputProfile", new PP3entry("ColorManagement.InputProfile", GetValue(Llines[i]), null, null)); i++; Values.Add("ColorManagement.BlendCMSMatrix", new PP3entry("ColorManagement.BlendCMSMatrix", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("ColorManagement.WorkingProfile", new PP3entry("ColorManagement.WorkingProfile", GetValue(Llines[i]), null, null)); i++; Values.Add("ColorManagement.OutputProfile", new PP3entry("ColorManagement.OutputProfile", GetValue(Llines[i]), null, null)); i++; Values.Add("ColorManagement.Gammafree", new PP3entry("ColorManagement.Gammafree", GetValue(Llines[i]), null, null)); i++; Values.Add("ColorManagement.Freegamma", new PP3entry("ColorManagement.Freegamma", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("ColorManagement.GammaValue", new PP3entry("ColorManagement.GammaValue", Convert.ToDouble(GetValue(Llines[i]), culture), 2.22d, 3.5d)); i++; Values.Add("ColorManagement.GammaSlope", new PP3entry("ColorManagement.GammaSlope", Convert.ToDouble(GetValue(Llines[i]), culture), 0d, 15d)); i++; Values.Add("DirectionalPyramidEqualizer.Enabled", new PP3entry("DirectionalPyramidEqualizer.Enabled", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("DirectionalPyramidEqualizer.Mult0", new PP3entry("DirectionalPyramidEqualizer.Mult0", Convert.ToDouble(GetValue(Llines[i]), culture), 0d, 4d)); i++; Values.Add("DirectionalPyramidEqualizer.Mult1", new PP3entry("DirectionalPyramidEqualizer.Mult1", Convert.ToDouble(GetValue(Llines[i]), culture), 0d, 4d)); i++; Values.Add("DirectionalPyramidEqualizer.Mult2", new PP3entry("DirectionalPyramidEqualizer.Mult2", Convert.ToDouble(GetValue(Llines[i]), culture), 0d, 4d)); i++; Values.Add("DirectionalPyramidEqualizer.Mult3", new PP3entry("DirectionalPyramidEqualizer.Mult3", Convert.ToDouble(GetValue(Llines[i]), culture), 0d, 4d)); i++; Values.Add("DirectionalPyramidEqualizer.Mult4", new PP3entry("DirectionalPyramidEqualizer.Mult4", Convert.ToDouble(GetValue(Llines[i]), culture), 0d, 1d)); i++; Values.Add("HSVEqualizer.HCurve", new PP3entry("HSVEqualizer.HCurve", PP3Curve.GetCurve(GetValue(Llines[i])), null, null)); i++; Values.Add("HSVEqualizer.SCurve", new PP3entry("HSVEqualizer.SCurve", PP3Curve.GetCurve(GetValue(Llines[i])), null, null)); i++; Values.Add("HSVEqualizer.VCurve", new PP3entry("HSVEqualizer.VCurve", PP3Curve.GetCurve(GetValue(Llines[i])), null, null)); i++; Values.Add("RAW.DarkFrame", new PP3entry("RAW.DarkFrame", GetValue(Llines[i]), null, null)); i++; Values.Add("RAW.DarkFrameAuto", new PP3entry("RAW.DarkFrameAuto", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("RAW.FlatFieldFile", new PP3entry("RAW.FlatFieldFile", GetValue(Llines[i]), null, null)); i++; Values.Add("RAW.FlatFieldAutoSelect", new PP3entry("RAW.FlatFieldAutoSelect", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("RAW.FlatFieldBlurRadius", new PP3entry("RAW.FlatFieldBlurRadius", Convert.ToInt32(GetValue(Llines[i])), 0, 200)); i++; Values.Add("RAW.FlatFieldBlurType", new PP3entry("RAW.FlatFieldBlurType", GetValue(Llines[i]), null, null)); i++; Values.Add("RAW.CA", new PP3entry("RAW.CA", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("RAW.CARed", new PP3entry("RAW.CARed", Convert.ToDouble(GetValue(Llines[i]), culture), -4d, 4d)); i++; Values.Add("RAW.CABlue", new PP3entry("RAW.CABlue", Convert.ToDouble(GetValue(Llines[i]), culture), -4d, 4d)); i++; Values.Add("RAW.HotDeadPixels", new PP3entry("RAW.HotDeadPixels", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("RAW.HotDeadPixelThresh", new PP3entry("RAW.HotDeadPixelThresh", Convert.ToInt32(GetValue(Llines[i])), 40, 40)); i++; Values.Add("RAW.LineDenoise", new PP3entry("RAW.LineDenoise", Convert.ToInt32(GetValue(Llines[i])), 0, 1000)); i++; Values.Add("RAW.GreenEqThreshold", new PP3entry("RAW.GreenEqThreshold", Convert.ToInt32(GetValue(Llines[i])), 0, 100)); i++; Values.Add("RAW.CcSteps", new PP3entry("RAW.CcSteps", Convert.ToInt32(GetValue(Llines[i])), 0, 5)); i++; Values.Add("RAW.Method", new PP3entry("RAW.Method", GetValue(Llines[i]), null, null)); i++; Values.Add("RAW.DCBIterations", new PP3entry("RAW.DCBIterations", Convert.ToInt32(GetValue(Llines[i])), 0, 5)); i++; Values.Add("RAW.DCBEnhance", new PP3entry("RAW.DCBEnhance", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("RAW.ALLEnhance", new PP3entry("RAW.ALLEnhance", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; Values.Add("RAW.PreExposure", new PP3entry("RAW.PreExposure", Convert.ToDouble(GetValue(Llines[i]), culture), 0.1d, 16d)); i++; Values.Add("RAW.PrePreserv", new PP3entry("RAW.PrePreserv", Convert.ToDouble(GetValue(Llines[i]), culture), 0d, 2.5d)); i++; Values.Add("RAW.PreBlackzero", new PP3entry("RAW.PreBlackzero", Convert.ToDouble(GetValue(Llines[i]), culture), -50d, 50d)); i++; Values.Add("RAW.PreBlackone", new PP3entry("RAW.PreBlackone", Convert.ToDouble(GetValue(Llines[i]), culture), -50d, 50d)); i++; Values.Add("RAW.PreBlacktwo", new PP3entry("RAW.PreBlacktwo", Convert.ToDouble(GetValue(Llines[i]), culture), -50d, 50d)); i++; Values.Add("RAW.PreBlackthree", new PP3entry("RAW.PreBlackthree", Convert.ToDouble(GetValue(Llines[i]), culture), -50d, 50d)); i++; Values.Add("RAW.PreTwoGreen", new PP3entry("RAW.PreTwoGreen", Convert.ToBoolean(GetValue(Llines[i])), null, null)); i++; NewCompensation = Compensation; }