Exemple #1
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                DateTimeScale s = null != o ? (DateTimeScale)o : new DateTimeScale(info);

                s._axisOrg = info.GetDateTime("Org");
                s._axisEnd = info.GetDateTime("End");
                s.ChildSetMember(ref s._rescaling, (DateTimeScaleRescaleConditions)info.GetValue("Rescaling", s));
                s.ChildSetMember(ref s._dataBounds, (FiniteDateTimeBoundaries)info.GetValue("Bounds", s));
                s.ChildSetMember(ref s._tickSpacing, new Ticks.DateTimeTickSpacing());

                s.EhChildChanged(s._dataBounds, EventArgs.Empty); // for this old version, rescaling is not fully serialized, thus we have to simulate a DataBoundChanged event to get _rescaling updated, and finally _tickSpacing updated

                return(s);
            }
Exemple #2
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                DateTimeScale s = null != o ? (DateTimeScale)o : new DateTimeScale(info);

                s._axisOrg = info.GetDateTime("Org");
                s._axisEnd = info.GetDateTime("End");
                s.ChildSetMember(ref s._dataBounds, (FiniteDateTimeBoundaries)info.GetValue("Bounds", s));
                s.ChildSetMember(ref s._rescaling, (DateTimeScaleRescaleConditions)info.GetValue("Rescaling", s));
                s.ChildSetMember(ref s._tickSpacing, (Ticks.DateTimeTickSpacing)info.GetValue("TickSpacing", s));

                s.UpdateTicksAndOrgEndUsingRescalingObject();

                return(s);
            }