- added function to mark a channel for swapping + swap with current channel

- replaced misuse of "FileLoadException" with a custom LoaderException to handle file loading issues with better continue/fail logic
- removed "Save As" and replaced it with "Convert list" menu item that shows information on how to use a reference list instead of direct conversion
This commit is contained in:
Horst Beham
2022-11-29 14:56:23 +01:00
parent 954b44ed7a
commit 4a1a39b1e7
60 changed files with 5295 additions and 3841 deletions

View File

@@ -150,7 +150,7 @@ namespace ChanSort.Loader.Hisense.ChannelDb
this.LoadTableNames(cmd);
if (!tableNames.Contains("svl_1") && !tableNames.Contains("svl_2") && !tableNames.Contains("svl_3"))
throw new FileLoadException("File doesn't contain svl_* tables");
throw LoaderException.Fail("File doesn't contain svl_* tables");
this.LoadSatelliteData(cmd);
this.LoadTslData(cmd);

View File

@@ -130,7 +130,7 @@ namespace ChanSort.Loader.Hisense.ServicelistDb
// make sure this .db file contains the required tables
if (dbSchema == null || !tableNames.Contains("service") || !tableNames.Contains("tuner"))
throw new FileLoadException("File doesn't contain the expected tables");
throw LoaderException.Fail("File doesn't contain the expected tables");
LoadLists(cmd);
LoadTunerData(cmd);