public CsvProducerControlViewModel(DataLoaderParams parameters)
        {
            _datasetColumns = parameters.ProducerParams;
            _entityProperties = new PropertyToTypeMap();

            if (_datasetColumns.PlacemarkParams == null || _datasetColumns.PlacemarkParams.NameProperties == null)
            {
                _datasetColumns.PlacemarkParams = null;
                return;
            }

            foreach (var property in _datasetColumns.PropertyToTypeMap.Mappings)
            {
                for (int i = 0; i < _datasetColumns.PlacemarkParams.NameProperties.Length; i++)
                {
                    string nameProperty = _datasetColumns.PlacemarkParams.NameProperties[i];

                    if (nameProperty != null && nameProperty.ToLower() == property.Name.ToLower())
                        property.IndexInName = "{" + i + "}";
                }
            }
        }
        public CsvProducerControlViewModel(DataLoaderParams parameters)
        {
            _datasetColumns   = parameters.ProducerParams;
            _entityProperties = new PropertyToTypeMap();

            if (_datasetColumns.PlacemarkParams == null || _datasetColumns.PlacemarkParams.NameProperties == null)
            {
                return;
            }

            foreach (var property in _datasetColumns.PropertyToTypeMap.Mappings)
            {
                for (int i = 0; i < _datasetColumns.PlacemarkParams.NameProperties.Length; i++)
                {
                    string nameProperty = _datasetColumns.PlacemarkParams.NameProperties[i];

                    if (nameProperty != null && nameProperty.ToLower() == property.Name.ToLower())
                    {
                        property.IndexInName = "{" + i + "}";
                    }
                }
            }
        }