mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 20:54:55 +00:00
adding some overloads
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user