mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-25 18:34:44 +00:00
31 lines
708 B
C#
31 lines
708 B
C#
using System.Collections.Generic;
|
|
using Crestron.SimplSharpPro.DeviceSupport;
|
|
using PepperDash.Essentials.Core;
|
|
|
|
namespace PepperDash.Essentials.Core.PageManagers
|
|
{
|
|
/// <summary>
|
|
/// A simple class that hides and shows the default subpage for a given source type
|
|
/// </summary>
|
|
public class SinglePageManager : PageManager
|
|
{
|
|
BasicTriList TriList;
|
|
uint BackingPageJoin;
|
|
|
|
public SinglePageManager(uint pageJoin, BasicTriList trilist)
|
|
{
|
|
TriList = trilist;
|
|
BackingPageJoin = pageJoin;
|
|
}
|
|
|
|
public override void Show()
|
|
{
|
|
TriList.BooleanInput[BackingPageJoin].BoolValue = true;
|
|
}
|
|
|
|
public override void Hide()
|
|
{
|
|
TriList.BooleanInput[BackingPageJoin].BoolValue = false;
|
|
}
|
|
}
|
|
} |