Sic.Framework-Nanjing-Baishi/MECF.Framework.UI.Client/CenterViews/Maintain/MaintainerItemConfigInfo.cs

101 lines
2.7 KiB
C#
Raw Normal View History

2024-01-29 11:12:21 +08:00
using Caliburn.Micro.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MECF.Framework.UI.Client.CenterViews.Maintain
{
/// <summary>
/// MaintainerItem 的配置
/// </summary>
public class MaintainerItemConfigInfo : PropertyChangedBase,ICloneable
{
string _parentname = string.Empty;
public string ParentName
{
get { return _parentname; }
set { _parentname = value; NotifyOfPropertyChange(nameof(ParentName)); }
}
public int ParentIndex
{
get;
set;
}
private string _parentnamedisplay = string.Empty;
public string ParentNameDisplay
{
get { return _parentnamedisplay; }
set { _parentnamedisplay = value; NotifyOfPropertyChange(nameof(ParentNameDisplay)); }
}
private string _name = string.Empty;
public string Name
{
get { return _name; }
set { _name = value; NotifyOfPropertyChange(nameof(Name)); }
}
private int _id = 0;
public int Id
{
get { return _id; }
set { _id = value; NotifyOfPropertyChange(nameof(Id)); }
}
private int _index = 0;
public int Index
{
get { return _index; }
set { _index = value; NotifyOfPropertyChange(nameof(Index)); }
}
private string _filepath = string.Empty;
public string FilePath
{
get { return _filepath; }
set { _filepath = value; NotifyOfPropertyChange(nameof(FilePath)); }
}
private string _description = string.Empty;
public string Description
{
get { return _description; }
set { _description = value; NotifyOfPropertyChange(nameof(Description)); }
}
private string _defaultrecord = string.Empty;
public string DefaultRecord
{
get { return _defaultrecord; }
set { _defaultrecord = value; NotifyOfPropertyChange(nameof(DefaultRecord)); }
}
public object Clone()
{
return new MaintainerItemConfigInfo()
{
ParentName = this.ParentName,
ParentIndex = this.ParentIndex,
ParentNameDisplay = this.ParentNameDisplay,
Name = this.Name,
Id = this.Id,
Index = this.Index,
FilePath = this.FilePath,
Description = this.Description,
DefaultRecord = this.DefaultRecord
};
}
}
}