ComboxParam.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections.ObjectModel;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using RecipeEditorLib.DGExtension.CustomColumn;
  8. namespace RecipeEditorLib.RecipeModel.Params
  9. {
  10. public class ComboxParam : Param
  11. {
  12. public ObservableCollection<ComboxColumn.Option> Options { get; set; }
  13. private string _Value = string.Empty;
  14. public string Value
  15. {
  16. get { return this._Value; }
  17. set
  18. {
  19. this._Value = value;
  20. if (this.Feedback != null)
  21. this.Feedback(this);
  22. this.NotifyOfPropertyChange("Value");
  23. }
  24. }
  25. private bool _isEditable;
  26. public bool IsEditable
  27. {
  28. get
  29. {
  30. return _isEditable;
  31. }
  32. set
  33. {
  34. _isEditable = value;
  35. this.NotifyOfPropertyChange("IsEditable");
  36. }
  37. }
  38. public string LoopBackground
  39. {
  40. get
  41. {
  42. return "Transparent";
  43. }
  44. }
  45. public bool IsLoopItem
  46. {
  47. get { return false; }
  48. }
  49. }
  50. }