Exemplo n.º 1
0
        IPropertyEntry INamedAttribute.GetSelectionProperty(string key, Project project, GeoObjectList geoObjectList)
        {
            GeoObjectList pointList = new GeoObjectList();

            foreach (IGeoObject go in geoObjectList)
            {
                if (go is Point)
                {
                    pointList.Add(go);
                }
            }
            return(new PointSymbolSelectionProperty(pointList, "Point.PointSymbol"));
        }
Exemplo n.º 2
0
        private void AddNoNotification(IGeoObject ToAdd)
        {
            if (ToAdd.Owner != null)
            {
                ToAdd.Owner.Remove(ToAdd);
            }
            lock (this)
            {
                containedObjects.Add(ToAdd);
            }
            ToAdd.WillChangeEvent += new ChangeDelegate(OnWillChange);
            ToAdd.DidChangeEvent  += new ChangeDelegate(OnDidChange);
            ToAdd.Owner            = this;
            IColorDef cd = ToAdd as IColorDef;

            if (cd != null && cd.ColorDef != null)
            {
                if (cd.ColorDef.Source == ColorDef.ColorSource.fromParent)
                {
                    cd.ColorDef = CDfromParent;
                }
            }
        }