- reworked UI

- fixed various issues with incorrect selection and program# assignment
This commit is contained in:
hbeham
2013-04-06 01:46:28 +02:00
parent f882df48c1
commit 961f3be305
28 changed files with 3645 additions and 2926 deletions

View File

@@ -1,27 +1,17 @@
using System.IO;
using ChanSort.Api;
using ChanSort.Api;
namespace ChanSort.Loader.TllFile
{
public class TllFileSerializerPlugin : ISerializerPlugin
{
private const int MAX_FILE_SIZE = 16*1000*1000;
private readonly string ERR_fileTooBig = Resource.TllFileSerializerPlugin_ERR_fileTooBig;
public string PluginName { get { return Resource.TllFileSerializerPlugin_PluginName; } }
public string PluginName { get { return "LG-Electronics *.tll"; } }
public string FileFilter { get { return "*.TLL"; } }
#region CreateSerializer()
public SerializerBase CreateSerializer(string inputFile)
{
long fileSize = new FileInfo(inputFile).Length;
if (fileSize > MAX_FILE_SIZE)
throw new IOException(string.Format(ERR_fileTooBig, fileSize, MAX_FILE_SIZE));
return new TllFileSerializer(inputFile);
}
#endregion
}
}