using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using XImagingXhandler.XDAL; namespace XHandler.Class.DataEx { /// /// 组命令实体类 /// public class CMethodGroup:INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; private string _groupName; /// /// 组名称 /// public string GroupName { get { return _groupName; } set { _groupName = value; if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(nameof(GroupName))); } } } ObservableCollection _children; /// /// 组单命令下的孩子命令 /// public ObservableCollection Children { get { return _children; } } /// /// 构造函数初始化孩子命令集合 /// public CMethodGroup() { _children = new ObservableCollection(); } } }