schangxiang@126.com
2025-11-04 ca398287db3f5ea01f03aac4a85edb13b28100a6
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
54
55
56
57
58
59
60
61
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 MethodExEx : MethodEx
    {
        public MethodExEx()
        {
            Children = new ObservableCollection<MethodEx>();
            Parent = null;
            Level = 0;
        }
 
        public MethodExEx(Method method)
        {
            this.method_id = method.method_id;
            this.method_name = method.method_name;
            this.method_status = method.method_status;
            this.method_content = method.method_content;
            this.method_ico = method.method_ico;
            this.method_group_id = method.method_group_id;
            this.method_support = method.method_support;
            this.method_type = method.method_type;
            Children = new ObservableCollection<MethodEx>();
            Parent = null;
            Level = 0;
            Moveable = true;
            canDrop = true;
            control = null;
            tag = null;
            isEnabled = true;
        }
 
        public MethodExEx(Method method, MethodEx parentItem)
        {
            this.method_id = method.method_id;
            this.method_name = method.method_name;
            this.method_status = method.method_status;
            this.method_content = method.method_content;
            this.method_ico = method.method_ico;
            this.method_group_id = method.method_group_id;
            this.method_support = method.method_support;
            this.method_type = method.method_type;
            Children = new ObservableCollection<MethodEx>();
            Parent = parentItem;
            Level = parentItem.Level + 1;
            Moveable = true;
            canDrop = true;
            control = null;
            tag = null;
            isEnabled = true;
        }
    }
}