Example #1
0
 //Constructor
 /// <summary>
 /// Creates an initialized instance.
 /// </summary>
 /// <param name="availableFieldNames">The collection of names of all available input fields.</param>
 /// <param name="cfg">The configuration.</param>
 public DivTransformer(List <string> availableFieldNames, DivTransformerSettings cfg)
 {
     _cfg       = (DivTransformerSettings)cfg.DeepClone();
     _xFieldIdx = availableFieldNames.IndexOf(_cfg.XInputFieldName);
     _yFieldIdx = availableFieldNames.IndexOf(_cfg.YInputFieldName);
     return;
 }
Example #2
0
 //Constructor
 /// <summary>
 /// Creates an initialized instance
 /// </summary>
 /// <param name="availableFieldNames">Collection of names of all available input fields</param>
 /// <param name="settings">Configuration</param>
 public DivTransformer(List <string> availableFieldNames, DivTransformerSettings settings)
 {
     _settings  = (DivTransformerSettings)settings.DeepClone();
     _xFieldIdx = availableFieldNames.IndexOf(_settings.XInputFieldName);
     _yFieldIdx = availableFieldNames.IndexOf(_settings.YInputFieldName);
     return;
 }
Example #3
0
 /// <summary>
 /// Deep copy constructor
 /// </summary>
 /// <param name="source">Source instance</param>
 public DivTransformerSettings(DivTransformerSettings source)
     : this(source.XInputFieldName, source.YInputFieldName)
 {
     return;
 }