mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-05-02 14:47:58 +03:00
26 lines
626 B
C#
26 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();
|
|
}
|
|
}
|