Esempio n. 1
0
        private void setEditableLayer(IFeature pFeat)
        {
            CSpatialSubs oSubs = new CSpatialSubs();

            IEditLayers   pEditLayers = this.m_editor as IEditLayers;
            IFeatureLayer pFLayer     = oSubs.returnFLayerByName(pFeat.Class.AliasName, true);

            pEditLayers.SetCurrentLayer(pFLayer, 0);
        }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            CSpatialSubs oSubs = new CSpatialSubs();

            IFeatureLayer pFLayer     = oSubs.returnFLayerByName(lbLayers.SelectedItem.ToString(), true);
            IEditLayers   pEditLayers = this.m_pEditor as IEditLayers;

            pEditLayers.SetCurrentLayer(pFLayer, 0);
            this.Close();
        }