Пример #1
0
        public PgAttributeVariantM(PgAttributeM source, string text, PgStyleObjectM style, object id)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }
            _id     = id;
            _source = source;
            _text   = text;
            PgAttributesListVM attrList = this.Source.Source as PgAttributesListVM;

            if (style != null && attrList.LoadStyle)
            {
                switch (((PgM.PgTableBaseM)source.Field.Table).GeomType)
                {
                case AbsM.EGeomType.Point:
                    _preview = GetPreviewStylePoint(style);
                    break;

                case AbsM.EGeomType.Line:
                    _preview = GetPreviewStyleLine(style);
                    break;

                case AbsM.EGeomType.Polygon:
                    _preview = GetPreviewStylePoligon(style);
                    break;

                default:
                    break;
                }
            }
        }
Пример #2
0
 public PgAttributeIntervalM(PgAttributeM source, string text, PgStyleObjectM style, object id, double min, double max)
     : base(source, text, style, id)
 {
     if (min != null)
     {
         _min = min;
     }
     if (max != null)
     {
         _max = max;
     }
 }
Пример #3
0
 public PgAttributeReferenceM(PgAttributeM source, string text, PgStyleObjectM style, object id)
     : base(source, text, style, id)
 {
 }