RecipeNode.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using MECF.Framework.Common.CommonData;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Collections.ObjectModel;
  5. using System.ComponentModel;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace MECF.Framework.Common.RecipeCenter
  10. {
  11. public class RecipeNode : NotifiableItem
  12. {
  13. private string _name;
  14. private RecipeNodeType _nodeType;
  15. private bool _isSelected;
  16. private bool _isExpanded;
  17. private ObservableCollection<RecipeNode> _children;
  18. private string _fileName;
  19. private string _recipeLocation;
  20. private string _recipeFullFileName;
  21. public string Name { get { return _name; } set { _name = value; InvokePropertyChanged(nameof(Name)); } }
  22. public RecipeNodeType NodeType { get { return _nodeType; } set { _nodeType = value;InvokePropertyChanged(nameof(NodeType)); } }
  23. public bool IsSelected { get { return _isSelected; } set { _isSelected = value; InvokePropertyChanged(nameof(IsSelected)); } }
  24. public bool IsExpanded { get { return _isExpanded; } set { _isExpanded = value; InvokePropertyChanged(nameof(IsExpanded)); } }
  25. public ObservableCollection<RecipeNode> Children { get { return _children; } set { _children = value; InvokePropertyChanged(nameof(Children)); } }
  26. public string FileName { get { return _fileName; } set { _fileName = value; InvokePropertyChanged( nameof(FileName)); } }
  27. public string RecipeLocation { get { return _recipeLocation; } set { _recipeLocation = value; InvokePropertyChanged(nameof(RecipeLocation)); } }
  28. public string RecipeFullFileName { get { return _recipeFullFileName; } set { _recipeFullFileName = value; InvokePropertyChanged(nameof(RecipeFullFileName)); } }
  29. }
  30. }