Esempio n. 1
0
        internal SLTuple Clone()
        {
            SLTuple t = new SLTuple();
            t.Field = this.Field;
            t.Hierarchy = this.Hierarchy;
            t.Item = this.Item;

            return t;
        }
Esempio n. 2
0
        internal SLTuple Clone()
        {
            SLTuple t = new SLTuple();

            t.Field     = this.Field;
            t.Hierarchy = this.Hierarchy;
            t.Item      = this.Item;

            return(t);
        }
Esempio n. 3
0
        internal void FromSortByTuple(SortByTuple sbt)
        {
            this.SetAllNull();

            if (sbt.MemberNameCount != null) this.MemberNameCount = sbt.MemberNameCount.Value;

            SLTuple t;
            using (OpenXmlReader oxr = OpenXmlReader.Create(sbt))
            {
                while (oxr.Read())
                {
                    if (oxr.ElementType == typeof(Tuple))
                    {
                        t = new SLTuple();
                        t.FromTuple((Tuple)oxr.LoadCurrentElement());
                        this.Tuples.Add(t);
                    }
                }
            }
        }
Esempio n. 4
0
        internal void FromTuples(Tuples tpls)
        {
            this.SetAllNull();

            if (tpls.MemberNameCount != null)
            {
                this.MemberNameCount = tpls.MemberNameCount.Value;
            }

            SLTuple t;

            using (OpenXmlReader oxr = OpenXmlReader.Create(tpls))
            {
                while (oxr.Read())
                {
                    if (oxr.ElementType == typeof(Tuple))
                    {
                        t = new SLTuple();
                        t.FromTuple((Tuple)oxr.LoadCurrentElement());
                        this.Tuples.Add(t);
                    }
                }
            }
        }