| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 | using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace RecipeEditorLib.RecipeModel.Params{    public class DoubleParam : Param    {        public override bool UndoChanges()        {            Value = OldValue;            IsSaved = true;            return true;        }        private string _oldValue;        public string OldValue        {            get { return this._oldValue; }            set            {                this._oldValue = value;                this.NotifyOfPropertyChange("OldValue");            }        }        private string  _value;        public string Value        {            get { return this._value; }            set            {                this._value = value;                if (IsSaved)                {                    OldValue = value;                }                if (this.Feedback != null)                    this.Feedback(this);                this.NotifyOfPropertyChange("Value");            }        }        private double _minimun;        public double Minimun        {            get { return this._minimun; }            set            {                this._minimun = value;                this.NotifyOfPropertyChange("Minimun");            }        }        private double _maximun;        public double Maximun        {            get { return this._maximun; }            set            {                this._maximun = value;                this.NotifyOfPropertyChange("Maximun");            }        }        private int _resolution;        public int Resolution        {            get { return this._resolution; }            set            {                this._resolution = value;                this.NotifyOfPropertyChange("Resolution");            }        }        public override void SetValue(string value)        {            IsSaved = false;            this.Value = value;        }    }}
 |