mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-08 09:15:06 +00:00
32 lines
486 B
C#
32 lines
486 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Crestron.SimplSharp;
|
|
|
|
namespace PepperDash.Essentials.Core.Feedbacks
|
|
{
|
|
public class BoolWithFeedback
|
|
{
|
|
private bool _Value;
|
|
public BoolFeedback Feedback;
|
|
public bool Value
|
|
{
|
|
get
|
|
{
|
|
return _Value;
|
|
}
|
|
set
|
|
{
|
|
_Value = value;
|
|
Feedback.FireUpdate();
|
|
}
|
|
}
|
|
public BoolWithFeedback()
|
|
|
|
{
|
|
Feedback = new BoolFeedback(() => { return Value; });
|
|
}
|
|
}
|
|
|
|
} |