示例#1
0
 public override void RegisterCallBack()
 {
     if (this.NativeObject != IntPtr.Zero)
     {
         m_getType_CallBack_EVAccessorType = EarthView_World_Spatial_Accessor_IDataAccessor_getType_EVAccessorType_Function;
         GC.KeepAlive(m_getType_CallBack_EVAccessorType);
         EV_RegisterCallback_EarthView_World_Spatial_Accessor_IDataAccessor_getType_EVAccessorType(this.NativeObject, m_getType_CallBack_EVAccessorType);
         m_open_CallBack_ev_bool_EVString = EarthView_World_Spatial_Accessor_IDataAccessor_open_ev_bool_EVString_Function;
         GC.KeepAlive(m_open_CallBack_ev_bool_EVString);
         EV_RegisterCallback_EarthView_World_Spatial_Accessor_IDataAccessor_open_ev_bool_EVString(this.NativeObject, m_open_CallBack_ev_bool_EVString);
         m_close_CallBack_ev_bool = EarthView_World_Spatial_Accessor_IDataAccessor_close_ev_bool_Function;
         GC.KeepAlive(m_close_CallBack_ev_bool);
         EV_RegisterCallback_EarthView_World_Spatial_Accessor_IDataAccessor_close_ev_bool(this.NativeObject, m_close_CallBack_ev_bool);
     }
 }
 protected static extern void EV_RegisterCallback_EarthView_World_Spatial_Accessor_IFileAccessor_open_ev_bool_EVString(IntPtr pObject, open_CallBack_ev_bool_EVString pCallback);