38 lines
799 B
C#
38 lines
799 B
C#
|
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));
|
|||
|
}
|
|||
|
}
|