public override IEnumerable <Item> Perform(IEnumerable <Item> items, IEnumerable <Item> modifierItems) { new Thread((ThreadStart) delegate { Exaile.Client("--next"); }).Start(); return(null); }
public override IEnumerable <Item> Perform(IEnumerable <Item> items, IEnumerable <Item> modifierItems) { new Thread((ThreadStart) delegate { foreach (Item item in items) { string enqueue = ""; if (item is MusicItem) { foreach (SongMusicItem song in Exaile.LoadSongsFor(item as MusicItem)) { enqueue += string.Format("\"{0}\" ", song.File); } Exaile.Client(enqueue); } } }).Start(); return(null); }
public void Run() { Services.Application.RunOnThread(() => { Exaile.Client(Command); }); }