コード例 #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);
        }
コード例 #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);
 }