Exemplo n.º 1
0
 /// <summary>Конструктор</summary>
 /// <param name="layer">Слой</param>
 /// <param name="featureId">Ключ</param>
 internal Feature(MiLayer layer, int featureId)
 {
     Id     = featureId;
     Layer  = layer;
     Handle = MiApi.mitab_c_read_feature(layer.Handle, featureId);
     Type   = MiApi.mitab_c_get_type(Handle);
     Parts  = CreateParts(this);
 }
Exemplo n.º 2
0
 /// <summary>Конструктор</summary>
 /// <param name="layer">Слой</param>
 /// <param name="featureId">Ключ</param>
 protected internal Feature(MiLayer layer, int featureId)
 {
     this.Id = featureId;
     this.Layer = layer;
     this.Handle = MiApi.mitab_c_read_feature(layer.Handle, featureId);
     this.Type = MiApi.mitab_c_get_type(Handle);
     this.Parts = CreateParts(this);
 }