1
private void addTempTableToolStripMenuItem_Click(object sender, EventArgs e)
2
{
3
MapInfo.Geometry.Point point = new MapInfo.Geometry.Point(map.GetDisplayCoordSys(), 100, 100);
4
MapInfo.Styles.SimpleVectorPointStyle svpStyle = new MapInfo.Styles.SimpleVectorPointStyle(40, System.Drawing.Color.Red, 40);
5
//get temp table
6
MapInfo.Data.Table table = MapInfo.Engine.Session.Current.Catalog.GetTable("Animation");
7
Feature ftr = new Feature(table.TableInfo.Columns);
8
9
ftr.Geometry = point;
10
ftr.Style = svpStyle;
11
ftr["NAME"] = "test";
12
table.InsertFeature(ftr);

2

3

4

5

6

7

8

9

10

11

12
