public override void Show() { if (PresetsView != null) { PresetsView.Attach(); } uint offset = GetOffsetJoin(); if (SetTopBox.HasDvr) // Show backing page with DVR controls { BackingPageJoin = offset + 1; AllLeftSubpages = new uint[] { 6, 7, 8 }; } else // Show the backing page with no DVR controls { BackingPageJoin = offset + 2; AllLeftSubpages = new uint[] { 6, 7 }; } if (LeftSubpageJoin == 0) { LeftSubpageJoin = offset + 6; // default to presets } TriList.BooleanInput[BackingPageJoin].BoolValue = true; TriList.BooleanInput[LeftSubpageJoin].BoolValue = true; // Attach buttons to interlock foreach (var p in AllLeftSubpages) { var p2 = p; // scope TriList.SetSigFalseAction(10000 + p2, () => InterlockLeftSubpage(p2)); } }
public override void Show() { if (PresetsView != null) { PresetsView.Attach(); } base.Show(); }