mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
feature: add valueswithfeedbacks #933
This commit is contained in:
parent
8a3c7ce6d4
commit
7e9ce898aa
4 changed files with 94 additions and 0 deletions
|
|
@ -0,0 +1,31 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using Crestron.SimplSharp;
|
||||||
|
|
||||||
|
namespace PepperDash.Essentials.Core.Feedbacks
|
||||||
|
{
|
||||||
|
public class BoolWithFeedback : BoolFeedback
|
||||||
|
{
|
||||||
|
private bool _Value;
|
||||||
|
public bool Value
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _Value;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_Value = value;
|
||||||
|
this.FireUpdate();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public BoolWithFeedback()
|
||||||
|
: base(() => Value)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,30 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using Crestron.SimplSharp;
|
||||||
|
|
||||||
|
namespace PepperDash.Essentials.Core.Feedbacks
|
||||||
|
{
|
||||||
|
public class IntWithFeedback : IntFeedback
|
||||||
|
{
|
||||||
|
private int _Value;
|
||||||
|
public int Value
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _Value;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_Value = value;
|
||||||
|
this.FireUpdate();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public IntWithFeedback()
|
||||||
|
: base(() => Value)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,30 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using Crestron.SimplSharp;
|
||||||
|
|
||||||
|
namespace PepperDash.Essentials.Core.Feedbacks
|
||||||
|
{
|
||||||
|
public class StringWithFeedback : StringFeedback
|
||||||
|
{
|
||||||
|
private string _Value;
|
||||||
|
public string Value
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _Value;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_Value = value;
|
||||||
|
this.FireUpdate();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public StringWithFeedback()
|
||||||
|
: base(() => Value)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -219,11 +219,14 @@
|
||||||
<Compile Include="Factory\IDeviceFactory.cs" />
|
<Compile Include="Factory\IDeviceFactory.cs" />
|
||||||
<Compile Include="Factory\ReadyEventArgs.cs" />
|
<Compile Include="Factory\ReadyEventArgs.cs" />
|
||||||
<Compile Include="Feedbacks\BoolFeedback.cs" />
|
<Compile Include="Feedbacks\BoolFeedback.cs" />
|
||||||
|
<Compile Include="Feedbacks\BoolWithFeedback.cs" />
|
||||||
<Compile Include="Feedbacks\FeedbackCollection.cs" />
|
<Compile Include="Feedbacks\FeedbackCollection.cs" />
|
||||||
<Compile Include="Feedbacks\FeedbackEventArgs.cs" />
|
<Compile Include="Feedbacks\FeedbackEventArgs.cs" />
|
||||||
<Compile Include="Feedbacks\IntFeedback.cs" />
|
<Compile Include="Feedbacks\IntFeedback.cs" />
|
||||||
|
<Compile Include="Feedbacks\IntWithFeedback.cs" />
|
||||||
<Compile Include="Feedbacks\SerialFeedback.cs" />
|
<Compile Include="Feedbacks\SerialFeedback.cs" />
|
||||||
<Compile Include="Feedbacks\StringFeedback.cs" />
|
<Compile Include="Feedbacks\StringFeedback.cs" />
|
||||||
|
<Compile Include="Feedbacks\StringWithFeedback.cs" />
|
||||||
<Compile Include="Fusion\EssentialsHuddleSpaceFusionSystemControllerBase.cs" />
|
<Compile Include="Fusion\EssentialsHuddleSpaceFusionSystemControllerBase.cs" />
|
||||||
<Compile Include="Fusion\FusionCustomPropertiesBridge.cs" />
|
<Compile Include="Fusion\FusionCustomPropertiesBridge.cs" />
|
||||||
<Compile Include="Fusion\FusionEventHandlers.cs" />
|
<Compile Include="Fusion\FusionEventHandlers.cs" />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue