예제 #1
0
        internal DateTimeItem ToDateTimeItem()
        {
            DateTimeItem dti = new DateTimeItem();

            dti.Val = this.Val;
            if (this.Unused != null)
            {
                dti.Unused = this.Unused.Value;
            }
            if (this.Calculated != null)
            {
                dti.Calculated = this.Calculated.Value;
            }
            if (this.Caption != null && this.Caption.Length > 0)
            {
                dti.Caption = this.Caption;
            }
            if (this.PropertyCount != null)
            {
                dti.PropertyCount = this.PropertyCount.Value;
            }

            foreach (int i in this.MemberPropertyIndexes)
            {
                if (i != 0)
                {
                    dti.Append(new MemberPropertyIndex()
                    {
                        Val = i
                    });
                }
                else
                {
                    dti.Append(new MemberPropertyIndex());
                }
            }

            return(dti);
        }
        internal DateTimeItem ToDateTimeItem()
        {
            var dti = new DateTimeItem();

            dti.Val = Val;
            if (Unused != null)
            {
                dti.Unused = Unused.Value;
            }
            if (Calculated != null)
            {
                dti.Calculated = Calculated.Value;
            }
            if ((Caption != null) && (Caption.Length > 0))
            {
                dti.Caption = Caption;
            }
            if (PropertyCount != null)
            {
                dti.PropertyCount = PropertyCount.Value;
            }

            foreach (var i in MemberPropertyIndexes)
            {
                if (i != 0)
                {
                    dti.Append(new MemberPropertyIndex {
                        Val = i
                    });
                }
                else
                {
                    dti.Append(new MemberPropertyIndex());
                }
            }

            return(dti);
        }
예제 #3
0
        internal DateTimeItem ToDateTimeItem()
        {
            DateTimeItem dti = new DateTimeItem();
            dti.Val = this.Val;
            if (this.Unused != null) dti.Unused = this.Unused.Value;
            if (this.Calculated != null) dti.Calculated = this.Calculated.Value;
            if (this.Caption != null && this.Caption.Length > 0) dti.Caption = this.Caption;
            if (this.PropertyCount != null) dti.PropertyCount = this.PropertyCount.Value;

            foreach (int i in this.MemberPropertyIndexes)
            {
                if (i != 0) dti.Append(new MemberPropertyIndex() { Val = i });
                else dti.Append(new MemberPropertyIndex());
            }

            return dti;
        }