Files
ChanSort/source/ChanSort.Loader.GlobalClone/GcChannel.cs
hbeham 6379920331 fixed handling of program numbers for deleted channels:
- after loading a list it is now ensures that if IsDeleted => OldProgramNr =-1 and for fixing bad files: if OldProgramNr == -1 => IsDeleted = true
- while saving a list, if NewProgramNr == -1, the channel will be set to IsDeleted=true and temporarily gets a sequential NewProgramNr assigned, so that no "-1" or duplicate numbers end up in the file. Afterwards for deleted channels the NewProgramNr will be set back to -1.
- GlobalClone files now set IsDeleted and IsDisabled if a channel was removed
2017-11-30 14:50:22 +01:00

23 lines
421 B
C#

using System.Xml;
using ChanSort.Api;
namespace ChanSort.Loader.GlobalClone
{
internal class GcChannel : ChannelInfo
{
internal int Index;
internal XmlNode XmlNode;
internal bool IsDisabled;
#region ctor()
internal GcChannel(SignalSource source, int index, XmlNode node)
{
this.SignalSource = source;
this.Index = index;
this.XmlNode = node;
}
#endregion
}
}