mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-05-03 07:08:01 +03:00
27 lines
626 B
C#
27 lines
626 B
C#
![]() |
namespace TRX_ConfigToolLib.Models;
|
|||
|
|
|||
|
public abstract class BaseProperty : BaseNotifyPropertyChanged
|
|||
|
{
|
|||
|
public string Field { get; set; }
|
|||
|
|
|||
|
public string Title
|
|||
|
{
|
|||
|
get => Language.Instance.Properties[Field].Title;
|
|||
|
}
|
|||
|
|
|||
|
public string Description
|
|||
|
{
|
|||
|
get => Language.Instance.Properties[Field].Description;
|
|||
|
}
|
|||
|
|
|||
|
public abstract object ExportValue();
|
|||
|
public abstract void LoadValue(string value);
|
|||
|
public abstract void SetToDefault();
|
|||
|
public abstract bool IsDefault { get; }
|
|||
|
|
|||
|
public virtual void Initialise(Specification specification)
|
|||
|
{
|
|||
|
SetToDefault();
|
|||
|
}
|
|||
|
}
|