123456789101112131415161718192021222324252627282930313233343536373839 |
- using MECF.Framework.Common.CommonData;
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.ComponentModel;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace MECF.Framework.Common.RecipeCenter
- {
- public class RecipeNode : NotifiableItem
- {
- private string _name;
- private RecipeNodeType _nodeType;
- private bool _isSelected;
- private bool _isExpanded;
- private ObservableCollection<RecipeNode> _children;
- private string _fileName;
- private string _recipeLocation;
- private string _recipeFullFileName;
-
- public string Name { get { return _name; } set { _name = value; InvokePropertyChanged(nameof(Name)); } }
- public RecipeNodeType NodeType { get { return _nodeType; } set { _nodeType = value;InvokePropertyChanged(nameof(NodeType)); } }
- public bool IsSelected { get { return _isSelected; } set { _isSelected = value; InvokePropertyChanged(nameof(IsSelected)); } }
- public bool IsExpanded { get { return _isExpanded; } set { _isExpanded = value; InvokePropertyChanged(nameof(IsExpanded)); } }
- public ObservableCollection<RecipeNode> Children { get { return _children; } set { _children = value; InvokePropertyChanged(nameof(Children)); } }
- public string FileName { get { return _fileName; } set { _fileName = value; InvokePropertyChanged( nameof(FileName)); } }
- public string RecipeLocation { get { return _recipeLocation; } set { _recipeLocation = value; InvokePropertyChanged(nameof(RecipeLocation)); } }
- public string RecipeFullFileName { get { return _recipeFullFileName; } set { _recipeFullFileName = value; InvokePropertyChanged(nameof(RecipeFullFileName)); } }
- }
- }
|