DoubleParam.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace RecipeEditorLib.RecipeModel.Params
  7. {
  8. public class DoubleParam : Param
  9. {
  10. private string _value;
  11. public string Value
  12. {
  13. get { return this._value; }
  14. set
  15. {
  16. this._value = value;
  17. if (this.Feedback != null)
  18. this.Feedback(this);
  19. this.NotifyOfPropertyChange("Value");
  20. }
  21. }
  22. private double _minimun;
  23. public double Minimun
  24. {
  25. get { return this._minimun; }
  26. set
  27. {
  28. this._minimun = value;
  29. this.NotifyOfPropertyChange("Minimun");
  30. }
  31. }
  32. private double _maximun;
  33. public double Maximun
  34. {
  35. get { return this._maximun; }
  36. set
  37. {
  38. this._maximun = value;
  39. this.NotifyOfPropertyChange("Maximun");
  40. }
  41. }
  42. private int _resolution;
  43. public int Resolution
  44. {
  45. get { return this._resolution; }
  46. set
  47. {
  48. this._resolution = value;
  49. this.NotifyOfPropertyChange("Resolution");
  50. }
  51. }
  52. }
  53. }