Exemplo n.º 1
0
 internal void Init()
 {
     this.setting               = null;
     this.innerList             = null;
     this.sparklineType         = Dt.Cells.Data.SparklineType.Line;
     this.dateAxisData          = null;
     this.dateAxisReference     = null;
     this.axisOrientation       = DataOrientation.Vertical;
     this.SparklineGroupManager = null;
     this.cachedFormula         = null;
 }
Exemplo n.º 2
0
 internal Sparkline(int row, int column, CalcExpression dataReference, Dt.Cells.Data.DataOrientation dataOrientation, Dt.Cells.Data.SparklineType type, CalcExpression dateAxisReference, Dt.Cells.Data.DataOrientation dateAxisOrientation, SparklineSetting setting)
 {
     this.Row             = row;
     this.Column          = column;
     this.DataReference   = dataReference;
     this.DataOrientation = dataOrientation;
     this.group           = new SparklineGroup();
     this.group.Add(this);
     this.SparklineType       = type;
     this.Setting             = setting;
     this.DateAxisReference   = dateAxisReference;
     this.DateAxisOrientation = dateAxisOrientation;
 }
Exemplo n.º 3
0
 internal SparklineGroup(Dt.Cells.Data.SparklineType type, SparklineSetting setting)
 {
     this.sparklineType = type;
     this.Setting       = setting;
 }
Exemplo n.º 4
0
        void IXmlSerializable.ReadXml(XmlReader reader)
        {
            this.Init();
            Serializer.InitReader(reader);
            while (reader.Read())
            {
                XmlReader reader3;
                XmlReader reader4;
                XmlReader reader5;
                XmlReader reader6;
                string    str;
                if ((reader.NodeType == ((XmlNodeType)((int)XmlNodeType.Element))) && ((str = reader.Name) != null))
                {
                    if (str != "SparklineType")
                    {
                        if (str == "DataOrientation")
                        {
                            goto Label_00AC;
                        }
                        if (str == "Formula")
                        {
                            goto Label_00D9;
                        }
                        if (str == "SparklineSetting")
                        {
                            goto Label_0106;
                        }
                        if (str == "SparklineList")
                        {
                            goto Label_0134;
                        }
                    }
                    else
                    {
                        XmlReader reader2 = Serializer.ExtractNode(reader);
                        this.SparklineType = (Dt.Cells.Data.SparklineType)Serializer.DeserializeObj(typeof(Dt.Cells.Data.SparklineType), reader2);
                        reader2.Close();
                    }
                }
                continue;
Label_00AC:
                reader3 = Serializer.ExtractNode(reader);
                this.DateAxisOrientation = (DataOrientation)Serializer.DeserializeObj(typeof(DataOrientation), reader3);
                reader3.Close();
                continue;
Label_00D9:
                reader4            = Serializer.ExtractNode(reader);
                this.cachedFormula = (string)((string)Serializer.DeserializeObj(typeof(string), reader4));
                reader4.Close();
                continue;
Label_0106:
                reader5 = Serializer.ExtractNode(reader);
                SparklineSetting setting = (SparklineSetting)Serializer.DeserializeObj(typeof(SparklineSetting), reader5);
                this.Setting = setting;
                reader5.Close();
                continue;
Label_0134:
                reader6 = Serializer.ExtractNode(reader);
                List <Sparkline> list = new List <Sparkline>();
                Serializer.DeserializeList((IList)list, reader6);
                foreach (Sparkline sparkline in list)
                {
                    this.Add(sparkline);
                }
                reader6.Close();
            }
        }