Esempio n. 1
0
        public virtual object Clone()
        {
            DateTimeAxisRescaleConditions result = new DateTimeAxisRescaleConditions();

            result.CopyFrom(this);
            return(result);
        }
 public DateTimeAxisRescaleController(DateTimeAxisRescaleConditions doc, DateTimeScale ax)
 {
   _doc = doc;
   _axis = ax;
   
   SetElements(true);
     
   
 }
Esempio n. 3
0
 public bool IsEqualTo(DateTimeAxisRescaleConditions b)
 {
     return
         (this._orgRescaling == b._orgRescaling &&
          this._org == b._org &&
          this._endRescaling == b._endRescaling &&
          this._end == b._end &&
          this._spanRescaling == b._spanRescaling &&
          this._span == b._span);
 }
Esempio n. 4
0
            public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
            {
                DateTimeAxisRescaleConditions s = (DateTimeAxisRescaleConditions)obj;

                info.AddEnum("OrgRescaling", s._orgRescaling);
                info.AddValue("Org", s._org);
                info.AddEnum("EndRescaling", s._endRescaling);
                info.AddValue("End", s._end);
                info.AddEnum("SpanRescaling", s._spanRescaling);
                info.AddValue("Span", s._span);
            }
Esempio n. 5
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                DateTimeAxisRescaleConditions s = null != o ? (DateTimeAxisRescaleConditions)o : new DateTimeAxisRescaleConditions();

                s._orgRescaling  = (BoundaryRescaling)info.GetEnum("OrgRescaling", typeof(BoundaryRescaling));
                s._org           = info.GetDateTime("Org");
                s._endRescaling  = (BoundaryRescaling)info.GetEnum("EndRescaling", typeof(BoundaryRescaling));
                s._end           = info.GetDateTime("End");
                s._spanRescaling = (BoundaryRescaling)info.GetEnum("SpanRescaling", typeof(BoundaryRescaling));
                s._span          = info.GetTimeSpan("Span");
                return(s);
            }
    /// <summary>
    /// Copies the data from another object.
    /// </summary>
    /// <param name="from">The object to copy the data from.</param>
    public void CopyFrom(DateTimeAxisRescaleConditions from)
    {
      bool bEqual = this.IsEqualTo(from);
      this._orgRescaling = from._orgRescaling;
      this._endRescaling = from._endRescaling;
      this._spanRescaling = from._spanRescaling;
      this._org = from._org;
      this._end = from._end;
      this._span = from._span;

      if(!bEqual)
        OnChanged();
    }
Esempio n. 7
0
        /// <summary>
        /// Copies the data from another object.
        /// </summary>
        /// <param name="from">The object to copy the data from.</param>
        public void CopyFrom(DateTimeAxisRescaleConditions from)
        {
            bool bEqual = this.IsEqualTo(from);

            this._orgRescaling  = from._orgRescaling;
            this._endRescaling  = from._endRescaling;
            this._spanRescaling = from._spanRescaling;
            this._org           = from._org;
            this._end           = from._end;
            this._span          = from._span;

            if (!bEqual)
            {
                OnChanged();
            }
        }
 public virtual object Clone()
 {
   DateTimeAxisRescaleConditions result = new DateTimeAxisRescaleConditions();
   result.CopyFrom(this);
   return result;
 }
 public bool IsEqualTo( DateTimeAxisRescaleConditions b)
 {
   return
     this._orgRescaling == b._orgRescaling &&
     this._org == b._org &&
     this._endRescaling == b._endRescaling &&
     this._end == b._end &&
     this._spanRescaling == b._spanRescaling &&
     this._span == b._span;
 }