Пример #1
0
        public DataMgr()
        {
            List <Plugin_DataProvider> pluginproviders = new List <Plugin_DataProvider>();
            List <PluginInfo2>         plugs           = PluginMgr2.Instance.Load();

            for (int i = 0; i < plugs.Count; i++)
            {
                pluginproviders.AddRange(plugs[i].GetProviders());
            }

            this.providers    = new List <DataProviderWrap>();
            this.dicProviders = new Dictionary <string, DataProviderWrap>();
            for (int i = 0; i < pluginproviders.Count; i++)
            {
                Plugin_DataProvider provider     = pluginproviders[i];
                DataProviderWrap    providerWrap = new DataProviderWrap(provider);
                providers.Add(providerWrap);
                dicProviders.Add(provider.GetName(), providerWrap);
            }
        }
Пример #2
0
 public String GetName()
 {
     return(provider.GetName());
 }