BoolParam.cs 584 B

1234567891011121314151617181920212223242526
  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 BoolParam : Param
  9. {
  10. private bool _value;
  11. public bool 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. }
  23. }