schangxiang@126.com
2025-11-04 f5ed29dc26c7cd952d56ec5721a2efc43cd25992
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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>();
        }
    }
}