mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-31 05:14:51 +00:00
31 lines
485 B
C#
31 lines
485 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Crestron.SimplSharp;
|
|
|
|
namespace PepperDash.Essentials.Core.Feedbacks
|
|
{
|
|
public class StringWithFeedback
|
|
{
|
|
private string _Value;
|
|
public StringFeedback Feedback;
|
|
public string Value
|
|
{
|
|
get
|
|
{
|
|
return _Value;
|
|
}
|
|
set
|
|
{
|
|
_Value = value;
|
|
Feedback.FireUpdate();
|
|
}
|
|
}
|
|
public StringWithFeedback()
|
|
|
|
{
|
|
Feedback = new StringFeedback(() => Value);
|
|
}
|
|
}
|
|
} |