mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-13 20:47:04 +00:00
adding some overloads
This commit is contained in:
parent
008a052045
commit
7a8c1f3165
2 changed files with 10 additions and 0 deletions
|
|
@ -26,6 +26,8 @@ namespace PepperDash.Essentials
|
||||||
|
|
||||||
_tunerPresets = new DevicePresetsModel(String.Format("{0}-presets", config.Key), _config.PresetsFileName);
|
_tunerPresets = new DevicePresetsModel(String.Format("{0}-presets", config.Key), _config.PresetsFileName);
|
||||||
|
|
||||||
|
_tunerPresets.LoadChannels();
|
||||||
|
|
||||||
_tuners = GetDevices<IRSetTopBoxBase>(_config.Tuners);
|
_tuners = GetDevices<IRSetTopBoxBase>(_config.Tuners);
|
||||||
_displays = GetDevices<TwoWayDisplayBase>(_config.Displays);
|
_displays = GetDevices<TwoWayDisplayBase>(_config.Displays);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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)
|
public void Dial(string chanNum, ISetTopBoxNumericKeypad setTopBox)
|
||||||
{
|
{
|
||||||
_dialFunctions = new Dictionary<char, Action<bool>>(10)
|
_dialFunctions = new Dictionary<char, Action<bool>>(10)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue