예제 #1
0
 public void CopyFrom(ParameterSetElement from)
 {
     this.Name      = from.Name;
     this.Parameter = from.Parameter;
     this.Variance  = from.Variance;
     this.Vary      = from.Vary;
 }
예제 #2
0
            public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
            {
                ParameterSetElement s = (ParameterSetElement)obj;

                info.AddValue("Name", s.Name);
                info.AddValue("Value", s.Parameter);
                info.AddValue("Variance", s.Variance);
                info.AddValue("Vary", s.Vary);
            }
예제 #3
0
            public virtual object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                ParameterSetElement s = o != null ? (ParameterSetElement)o : new ParameterSetElement();

                s.Name      = info.GetString("Name");
                s.Parameter = info.GetDouble("Value");
                s.Variance  = info.GetDouble("Variance");
                s.Vary      = info.GetBoolean("Vary");

                return(s);
            }
예제 #4
0
        public void CopyFrom(ParameterSetElement from)
        {
            if (object.ReferenceEquals(this, from))
            {
                return;
            }

            Name      = from.Name;
            Parameter = from.Parameter;
            Variance  = from.Variance;
            Vary      = from.Vary;
        }
		/// <summary>
		/// Called when the doc has changed outside the controller. All changes that have been
		/// made manually are discarded, and the values of the changed document are shown on the view.
		/// </summary>
		public void Refresh()
		{
			// the doc has
			_tempdoc = new ParameterSetElement(_doc);
			Initialize();
		}
		public ParameterSetElementController(ParameterSetElement doc)
		{
			_doc = doc;
			_tempdoc = new ParameterSetElement(doc);
		}
예제 #7
0
		public void CopyFrom(ParameterSetElement from)
		{
			if (object.ReferenceEquals(this, from))
				return;

			this.Name = from.Name;
			this.Parameter = from.Parameter;
			this.Variance = from.Variance;
			this.Vary = from.Vary;
		}
예제 #8
0
		public ParameterSetElement(ParameterSetElement from)
		{
			CopyFrom(from);
		}
예제 #9
0
		public void Add(ParameterSetElement ele)
		{
			this.InnerList.Add(ele);
		}
예제 #10
0
 public ParameterSetElement(ParameterSetElement from)
 {
     CopyFrom(from);
 }
예제 #11
0
 public void Add(ParameterSetElement ele)
 {
     this.InnerList.Add(ele);
 }
예제 #12
0
 public void CopyFrom(ParameterSetElement from)
 {
   this.Name = from.Name;
   this.Parameter = from.Parameter;
   this.Variance = from.Variance;
   this.Vary = from.Vary;
 }