- added info screen when opening an empty LG channel list which is most likely caused by selecting a predefined list

during the TV setup or channel search
- fixed: Sony KDL channel lists were not saved correctly
- upgrade to DevExpres 20.1.3
- Loaders can use Api.View.Default.MessageBox(...) to show a DevExpress themed message box without adding a reference to DX libs
This commit is contained in:
Horst Beham
2020-05-06 22:07:48 +02:00
parent 9e9028a99c
commit 728e36ef39
32 changed files with 472 additions and 421 deletions

View File

@@ -2,9 +2,9 @@
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Windows.Forms;
using System.Xml;
using ChanSort.Api;
using System.Windows.Forms;
namespace ChanSort.Loader.GlobalClone
{
@@ -106,7 +106,7 @@ namespace ChanSort.Loader.GlobalClone
{
series = match.Groups[1].Value;
if ((series == "LB" || series == "UB") && StringComparer.InvariantCulture.Compare(match.Groups[2].Value, "60") >= 0)
MessageBox.Show(Resources.GcSerializer_webOsFirmwareWarning, "LG GlobalClone", MessageBoxButtons.OK, MessageBoxIcon.Information);
Api.View.Default.MessageBox(Resources.GcSerializer_webOsFirmwareWarning, "LG GlobalClone", (int)MessageBoxButtons.OK, (int)MessageBoxIcon.Information);
}
break;
}
@@ -118,7 +118,7 @@ namespace ChanSort.Loader.GlobalClone
if (binTlls.Length > 0 && !(binTlls.Length == 1 && Path.GetFileName(binTlls[0]).ToLower() == Path.GetFileName(this.FileName).ToLower()))
{
var txt = Resources.GcSerializer_ReadModelInfo_ModelWarning;
if (MessageBox.Show(txt, "LG GlobalClone", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
if (Api.View.Default.MessageBox(txt, "LG GlobalClone", (int)MessageBoxButtons.YesNo, (int)MessageBoxIcon.Information) == (int)DialogResult.Yes)
{
foreach (var file in binTlls)
File.Move(file, file + "_bak");
@@ -196,6 +196,16 @@ namespace ChanSort.Loader.GlobalClone
break;
}
}
// when the user selects a predefined "provider" during the TV's setup, an empty list will be exported and can't be edited
int total = 0;
foreach (var list in this.DataRoot.ChannelLists)
total += list.Channels.Count;
if (total == 0)
{
Api.View.Default.MessageBox(Resources.GcSerializer_ReadChannelLists_NoChannelsMsg, Resources.GcSerializer_ReadChannelLists_NoChannelsCap,
(int)MessageBoxButtons.OK, (int)MessageBoxIcon.Exclamation);
}
}
#endregion