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
|
{
|
/// <summary>
|
/// 组命令实体类
|
/// </summary>
|
public class CMethodGroup:INotifyPropertyChanged
|
{
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
private string _groupName;
|
/// <summary>
|
/// 组名称
|
/// </summary>
|
public string GroupName
|
{
|
get { return _groupName; }
|
set
|
{
|
_groupName = value;
|
if (PropertyChanged != null)
|
{
|
PropertyChanged(this, new PropertyChangedEventArgs(nameof(GroupName)));
|
}
|
}
|
}
|
|
ObservableCollection<MethodEx> _children;
|
/// <summary>
|
/// 组单命令下的孩子命令
|
/// </summary>
|
public ObservableCollection<MethodEx> Children
|
{
|
get { return _children; }
|
}
|
|
/// <summary>
|
/// 构造函数初始化孩子命令集合
|
/// </summary>
|
public CMethodGroup()
|
{
|
_children = new ObservableCollection<MethodEx>();
|
}
|
}
|
}
|