WMS Custom
Inheritance: GMap.NET.MapProviders.GMapProvider
        static GDALProvider()
        {
            Instance = new GDALProvider();

            Type      mytype = typeof(GMapProviders);
            FieldInfo field  = mytype.GetField("DbHash", BindingFlags.Static | BindingFlags.NonPublic);
            Dictionary <int, GMapProvider> list = (Dictionary <int, GMapProvider>)field.GetValue(Instance);

            list.Add(Instance.DbId, Instance);

            //GMap.NET.MapProviders.GMapProviders.List.Add(Instance);
        }
Esempio n. 2
0
        static GDALProvider()
        {
            Instance = new GDALProvider();

            Type mytype = typeof (GMapProviders);
            FieldInfo field = mytype.GetField("DbHash", BindingFlags.Static | BindingFlags.NonPublic);
            Dictionary<int, GMapProvider> list = (Dictionary<int, GMapProvider>) field.GetValue(Instance);

            list.Add(Instance.DbId, Instance);

            //GMap.NET.MapProviders.GMapProviders.List.Add(Instance);
        }