Esempio n. 1
0
        /// <summary>
        /// This method runs once in the Module life; when it loaded into the petrel.
        /// This method called first.
        /// </summary>
        ///
        public void Initialize()
        {
            Type customVectorFieldType             = typeof(CustomVectorField);
            Type factoryType                       = typeof(IMapRenderer);
            CustomVectorFieldMapDisplay mapFactory = new CustomVectorFieldMapDisplay();

            CoreSystem.Services.AddService(customVectorFieldType, factoryType, mapFactory);
        }
Esempio n. 2
0
 /// <summary>
 /// This method runs once in the Module life; when it loaded into the petrel.
 /// This method called first.
 /// </summary>
 /// 
 public void Initialize()
 {
     Type customVectorFieldType = typeof(CustomVectorField);
     Type factoryType = typeof(IMapRenderer);
     CustomVectorFieldMapDisplay mapFactory = new CustomVectorFieldMapDisplay();
     CoreSystem.Services.AddService(customVectorFieldType, factoryType, mapFactory);
 }