/// <summary>
 /// Inicializa a instancia.
 /// </summary>
 public void Initialize()
 {
     if (!_initialized)
     {
         _initialized  = true;
         _fieldSchemes = new List <SchemeField>(_loader.GetSchemeFields());
         _channels     = new Dictionary <byte, Channel>();
         foreach (var i in _loader.GetChannels())
         {
             _channels.Add(i.ChannelId, i);
         }
     }
 }
 /// <summary>
 /// Inicializa a instancia.
 /// </summary>
 public void Initialize()
 {
     if (!_initialized)
     {
         _initialized      = true;
         _fieldSchemes     = new List <SchemeField>(_loader.GetSchemeFields());
         _fieldSchemeIndex = new List <SchemeIndex>(_loader.GetSchemeIndex());
         _fieldSchemes.Sort(SchemeField.NameComparerSchemeField);
         _channels = new Dictionary <byte, Channel>();
         using (var channelsEnumerator = _loader.GetChannels().GetEnumerator())
         {
             while (channelsEnumerator.MoveNext())
             {
                 var channel = channelsEnumerator.Current;
                 _channels.Add(channel.ChannelId, channel);
             }
         }
     }
 }