adding some overloads

This commit is contained in:
Andrew Welker
2020-12-02 13:37:53 -07:00
parent 008a052045
commit 7a8c1f3165
2 changed files with 10 additions and 0 deletions

View File

@@ -26,6 +26,8 @@ namespace PepperDash.Essentials
_tunerPresets = new DevicePresetsModel(String.Format("{0}-presets", config.Key), _config.PresetsFileName);
_tunerPresets.LoadChannels();
_tuners = GetDevices<IRSetTopBoxBase>(_config.Tuners);
_displays = GetDevices<TwoWayDisplayBase>(_config.Displays);
}

View File

@@ -165,6 +165,14 @@ namespace PepperDash.Essentials.Core.Presets
});
}
public void Dial(int presetNum, ISetTopBoxNumericKeypad setTopBox)
{
if (presetNum <= PresetsList.Count)
{
Dial(PresetsList[presetNum - 1].Channel, setTopBox);
}
}
public void Dial(string chanNum, ISetTopBoxNumericKeypad setTopBox)
{
_dialFunctions = new Dictionary<char, Action<bool>>(10)