/// <summary> /// Creates a new instance of Mapinfo and returns a <see cref="MapInfoSession"/> /// which contains the instance. /// <para>The returned objet can be passed into objects and /// methods that need it in the MapinfoWrapper API.</para> /// </summary> /// <returns>A new <see cref="ComMapInfo"/> containing the running instance of Mapinfo.</returns> public static IMapInfoWrapper CreateMapInfoInstance() { DMapInfo instance = CreateMapinfoInstance(); ComMapInfo map_info = new ComMapInfo(instance); return(map_info); }
/// <summary> /// Creates a new instance of Mapinfo and returns a <see cref="MapInfoSession"/> /// which contains the instance. /// <para>The returned objet can be passed into objects and /// methods that need it in the MapinfoWrapper API.</para> /// </summary> /// <returns>A new <see cref="ComMapInfo"/> containing the running instance of Mapinfo.</returns> public static IMapInfoSession CreateMapInfoInstance() { IMapInfoWrapper mapinfo = ComMapInfo.CreateMapInfoInstance(); MapInfoSession session = new MapInfoSession(mapinfo); if (SessionCreated != null) { SessionCreated(session, EventArgs.Empty); } return(session); }