NumParam.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 NumParam : Param
  9. {
  10. private int _value;
  11. public int 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. }
  43. }