예제 #1
0
        //public void init(tblPolyline sqltable)
        public override bool Load(object obj)
        {
            bool ret = true;

            Dirty     = false;
            sqltable  = (tblPolygon)obj;
            SQLID     = sqltable.ID;
            oIndex    = sqltable.oIndex;
            Layer     = (LAYERS)sqltable.Layer;
            NewObject = false;

            shapeoutline.LineStyle = sqltable.LineStyle;
            ShapeType              = STATIC_OBJ_TYPE.ID_POLYGON;
            shapefill.FillColor    = sqltable.FillColor;
            shapeoutline.LineStyle = sqltable.LineStyle;
#if EWSAPP
            drawexpressionCollection.DisplayObjectParametersstr       = sqltable.Argument;
            drawexpressionCollection.DisplayObjectDynamicPropertysstr = sqltable.Expression;
            drawexpressionCollection.DisplayObjectEventHandlersstr    = sqltable.Action;
#endif
#if OWSAPP
            if (sqltable.validexpression)
            {
                loadDrawExpressionCollection(sqltable.CompiledExp);
                UpdateHasExpression();
            }
#endif
            Points   = sqltable.Points;
            LineType = sqltable.LineType;

            return(ret);
        }
예제 #2
0
 public tblPointsPolygonCollection(tblPolygon parent)
 {
     m_PolygonID_tblPolygon = parent;
 }