mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-01-16 20:32:04 +01:00
- 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
23 lines
421 B
C#
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
|
|
|
|
}
|
|
}
|