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;
|
}
|
}
|
}
|