public void SetCurrentConverter(string converterName) { BaseTableConverter converter; if (_converters.TryGetValue(converterName, out converter)) { CurrentConverter = converter; } }
public void InitTableConverters() { if (_initialized) { return; } foreach (var converter in GetConverterLoader().GetConverters()) { _converters.Add(converter.ConverterName, converter); } if (_converters.Any()) { CurrentConverter = _converters.First().Value; } _initialized = true; }