Dispenser/DispenserHal/Camera/DTO/StringValue.cs

38 lines
799 B
C#
Raw Normal View History

2024-08-16 07:20:09 +00:00
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace DispenserHal.Camera.DTO;
public class StringValue : INotifyPropertyChanged
{
private string _curValue;
private long _maxLength;
public string CurValue
{
get => _curValue;
set
{
_curValue = value;
OnPropertyChanged();
}
}
public long MaxLength
{
get => _maxLength;
set
{
_maxLength = value;
OnPropertyChanged();
}
}
public event PropertyChangedEventHandler? PropertyChanged;
protected virtual void OnPropertyChanged([CallerMemberName] string? propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}