mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-01-15 11:52:04 +01:00
- restructured source and added build configuration to build all non-UI projects without the need for a DevExpress license
This commit is contained in:
31
source/ChanSort.Loader.LG/ILgUserInterfaceFactory.cs
Normal file
31
source/ChanSort.Loader.LG/ILgUserInterfaceFactory.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System.Collections.Generic;
|
||||
using ChanSort.Loader.LG.Binary;
|
||||
|
||||
namespace ChanSort.Loader.LG
|
||||
{
|
||||
/*
|
||||
* The WinForms/DevExpress user interface classes are located in a separate project (ChanSort.Loader.LG.UI)
|
||||
* so that this project here with the loader code can be recompiled without a DevExpress license.
|
||||
*
|
||||
* The class ChanSort.Loader.LG.UI.LgUserInterfaceFactory implements this interface and is dynamically loaded
|
||||
* via reflection at run-time to avoid any compile-time dependencies.
|
||||
*
|
||||
* Parameters passed to UI methods should be interfaces to maintain binary so that adding new member variables
|
||||
* to the loader code won't break binary compatibility between the precompiled UI dll and a recompiled Loader dll
|
||||
*
|
||||
*/
|
||||
public interface ILgUserInterfaceFactory
|
||||
{
|
||||
public void ShowTvSettingsForm(ITllFileSerializer serializer, object parentWindow);
|
||||
bool ShowPresetProgramNrDialog();
|
||||
}
|
||||
|
||||
|
||||
public interface ITllFileSerializer
|
||||
{
|
||||
IList<string> SupportedTvCountryCodes { get; }
|
||||
string TvCountryCode { get; set; }
|
||||
FirmwareData GetFirmwareMapping();
|
||||
int GetHotelMenuOffset();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user