public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
            {
                NumericLabelFormattingBase s = (NumericLabelFormattingBase)obj;

                info.AddBaseValueEmbedded(s, typeof(LabelFormattingBase));
                info.AddValue("DecimalPlaces", s._decimalPlaces);
            }
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                NumericLabelFormattingBase s = (NumericLabelFormattingBase)o;

                info.GetBaseValueEmbedded(s, typeof(LabelFormattingBase), parent);
                s._decimalPlaces = info.GetInt32("DecimalPlaces");
                return(s);
            }
Exemple #3
0
 protected NumericLabelFormattingBase(NumericLabelFormattingBase from)
     : base(from) // everything is done here, since CopyFrom is virtual
 {
 }
 protected void CopyFrom(NumericLabelFormattingBase from)
 {
     this._decimalPlaces = from._decimalPlaces;
 }
		protected NumericLabelFormattingBase(NumericLabelFormattingBase from)
			: base(from) // everything is done here, since CopyFrom is virtual
		{
		}
 protected void CopyFrom(NumericLabelFormattingBase from)
 {
   this._decimalPlaces = from._decimalPlaces;
 }