Exemplo n.º 1
0
 public static void DeletedSelectedZD(ICursor icursor_0)
 {
     new System.Collections.Generic.List <IFeature>();
     for (IRow row = icursor_0.NextRow(); row != null; row = icursor_0.NextRow())
     {
         ZDEditTools.DeleteZD(row as IFeature);
     }
 }
Exemplo n.º 2
0
        public static void DeletedSelectedZD(IFeatureSelection ifeatureSelection_0)
        {
            IEnumIDs iDs = ifeatureSelection_0.SelectionSet.IDs;

            iDs.Reset();
            int i = iDs.Next();

            System.Collections.Generic.List <IFeature> list = new System.Collections.Generic.List <IFeature>();
            IFeatureClass featureClass = (ifeatureSelection_0 as IFeatureLayer).FeatureClass;

            while (i > 0)
            {
                IFeature feature = featureClass.GetFeature(i);
                list.Add(feature);
                i = iDs.Next();
            }
            foreach (IFeature current in list)
            {
                ZDEditTools.DeleteZD(current);
            }
        }
Exemplo n.º 3
0
 public static void Delete(IFeature ifeature_0)
 {
     ZDEditTools.DeleteZD(ifeature_0);
 }