mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-05-06 07:55:59 +02:00
- renamed project directories
- added unit tests for loading and saving TLLs of various LG models - added "Save reference list" menu item
This commit is contained in:
@@ -19,7 +19,8 @@ namespace ChanSort.Api
|
||||
ChannelInfo lastInsertedChannel = null;
|
||||
int progNr = this.ChannelList.InsertProgramNumber;
|
||||
int relativeChannelNumber = 0;
|
||||
foreach(var channel in this.ChannelList.Channels.Where(c => c.NewProgramNr>=progNr).OrderBy(c=>c.NewProgramNr))
|
||||
int progNrCopy = progNr; // prevent "access to modified closure" warning
|
||||
foreach(var channel in this.ChannelList.Channels.Where(c => c.NewProgramNr>=progNrCopy).OrderBy(c=>c.NewProgramNr))
|
||||
{
|
||||
int gap = count - (channel.NewProgramNr - progNr - relativeChannelNumber);
|
||||
if (gap > 0)
|
||||
@@ -83,7 +84,7 @@ namespace ChanSort.Api
|
||||
|
||||
#region MoveChannels()
|
||||
|
||||
public void MoveChannels(List<ChannelInfo> channels, bool up)
|
||||
public void MoveChannels(IList<ChannelInfo> channels, bool up)
|
||||
{
|
||||
if (channels.Count == 0)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user