Beispiel #1
0
        protected override void ParseAttribute(XmlNode attr)
        {
            switch (attr.Name.ToLower())
            {
            case "name":
                _name = attr.InnerText;
                break;

            case "label":
                _label = new Expression(attr, this);
                break;

            case "groupexpressions":
                foreach (XmlNode child in attr.ChildNodes)
                {
                    _groupExpressions.Add(new Expression(child, this));
                }
                break;

            case "pagebreakatstart":
                _pageBreakAtStart = bool.Parse(attr.InnerText);
                break;

            case "pagebreakatend":
                _pageBreakAtEnd = bool.Parse(attr.InnerText);
                break;

            case "filters":
                _filters = new Filters(attr, this);
                break;

            case "parent":
                _parentGroup = new Expression(attr, this);;
                break;

            case "dataelementname":
                _dataElementName = attr.InnerText;
                break;

            case "datacollectionname":
                _dataCollectionName = attr.InnerText;
                break;

            case "dataelementoutput":
                _dataElementOutput = (Enums.DataElementOutputEnum)Enum.Parse(typeof(Enums.DataElementOutputEnum), attr.InnerText, true);
                break;

            default:
                break;
            }
        }
Beispiel #2
0
        protected override void ParseAttribute(XmlNode attr)
        {
            base.ParseAttribute(attr);
            switch (attr.Name.ToLower())
            {
            case "value":
                _vaue = new Expression(attr, this);
                break;

            case "cangrow":
                _canGrow = bool.Parse(attr.InnerText);
                break;

            case "canshrink":
                _canShrink = bool.Parse(attr.InnerText);
                break;

            case "hideduplicates":
                _hideDuplicates = attr.InnerText;
                break;

            case "toggleimage":
                _toggleImage = new ToggleImage(attr, this);
                break;

            case "usersort":
                _userSort = new UserSort(attr, this);
                break;

            case "dataelementstyle":
                _dataElementStyle = (Enums.DataElementOutputEnum)Enum.Parse(typeof(Enums.DataElementOutputEnum), attr.InnerText, true);
                break;

            case "initialstate":
                _initialState = new Expression(attr, this);
                break;

            default:
                break;
            }
        }
Beispiel #3
0
        protected override void ParseAttribute(XmlNode attr)
        {
            base.ParseAttribute(attr);
            switch (attr.Name.ToLower())
            {
            case "datavalues":
                foreach (XmlNode child in attr.ChildNodes)
                {
                    _dataValues.Add(new Expression(child, this));
                }
                break;

            case "datalabel":
                _dataLabel = new DataLabel(attr, this);
                break;

            case "action":
                _action = new Action(attr, this);
                break;

            case "style":
                _style = new Style(attr, this);
                break;

            case "marker":
                _marker = new Marker(attr, this);
                break;

            case "dataelementname":
                _dataElementName = attr.InnerText;
                break;

            case "dataelementoutput":
                _dataElementOutput = (Enums.DataElementOutputEnum)Enum.Parse(typeof(Enums.DataElementOutputEnum), attr.InnerText, true);
                break;

            default:
                break;
            }
        }
Beispiel #4
0
        protected override void ParseAttribute(XmlNode attr)
        {
            base.ParseAttribute(attr);
            switch (attr.Name.ToLower())
            {
            case "type":
                _type = (TypeEnum)Enum.Parse(typeof(TypeEnum), attr.InnerText, true);
                break;

            case "subtype":
                _subType = (SubtypeEnum)Enum.Parse(typeof(SubtypeEnum), attr.InnerText, true);
                break;

            case "seriesgroupings":
            {
                SeriesGrouping lastGrouping = null;

                foreach (XmlNode child in attr.ChildNodes)
                {
                    SeriesGrouping seriesGrouping = SeriesGrouping.GetSeriesGrouping(child, this);
                    if (_seriesGrouping == null)
                    {
                        _seriesGrouping = seriesGrouping;
                    }
                    else
                    {
                        lastGrouping.NextGrouping = seriesGrouping;
                    }
                    lastGrouping = seriesGrouping;
                }
            }
            break;

            case "categorygroupings":
            {
                CategoryGrouping lastGrouping = null;

                foreach (XmlNode child in attr.ChildNodes)
                {
                    CategoryGrouping categoryGrouping = CategoryGrouping.GetCategoryGrouping(child, this);
                    if (_categoryGrouping == null)
                    {
                        _categoryGrouping = categoryGrouping;
                    }
                    else
                    {
                        lastGrouping.NextGrouping = categoryGrouping;
                    }
                    lastGrouping = categoryGrouping;
                }
            }
            break;

            case "chartdata":
                foreach (XmlNode child in attr.ChildNodes)
                {
                    _chartData.Add(new ChartSeries(child, this));
                }
                break;

            case "legend":
                _legend = new Legend(attr, this);
                break;

            case "categoryaxis":
                _categoryAxis = new CategoryAxis(attr.FirstChild, this);
                break;

            case "valueaxis":
                _valueAxis = new ValueAxis(attr.FirstChild, this);
                break;

            case "title":
                _title = new Title(attr, this);
                break;

            case "pointwidth":
                _pointWidth = int.Parse(attr.InnerText);
                break;

            case "pallette":
                _palette = (Palette.PaletteEnum)Enum.Parse(typeof(Palette.PaletteEnum), attr.InnerText, true);
                break;

            case "threedproperties":
                _threeDProperties = new ThreeDProperties(attr, this);
                break;

            case "plotarea":
                _plotAreaStyle = new Style(attr.FirstChild, this);
                break;

            case "chartelementoutput":
                _chartElementOutput = (Enums.DataElementOutputEnum)Enum.Parse(typeof(Enums.DataElementOutputEnum), attr.InnerText, true);
                break;

            default:
                break;
            }
        }
Beispiel #5
0
        protected override void ParseAttribute(XmlNode attr)
        {
            switch (attr.Name.ToLower())
            {
            case "name":
                _name = attr.InnerText;
                break;

            case "style":
                _style = new Style(attr, this);
                break;

            case "action":
                _action = new Action(attr, this);
                break;

            case "top":
                _top = new Size(attr.InnerText);
                break;

            case "left":
                _left = new Size(attr.InnerText);
                break;

            case "height":
                _height = new Size(attr.InnerText);
                break;

            case "width":
                _width = new Size(attr.InnerText);
                break;

            case "zindex":
                _zindex = Int16.Parse(attr.InnerText);
                break;

            case "visibility":
                _visibility = new Visibility(attr, this);
                break;

            case "tooltip":
                _toolTop = new Expression(attr, this);
                break;

            case "label":
                _label = new Expression(attr, this);
                break;

            case "linktochild":
                _linkToChild = attr.InnerText;
                break;

            case "bookmark":
                _bookmark = new Expression(attr, this);
                break;

            case "repeatwith":
                _repeatWith = attr.InnerText;
                break;

            case "dataelementname":
                _dataElementName = attr.InnerText;
                break;

            case "dataelementoutput":
                _dataElementOutput = (Enums.DataElementOutputEnum)Enum.Parse(typeof(Enums.DataElementOutputEnum), attr.InnerText, true);
                break;

            default:
                break;
            }
        }