public void Large() { LoopboxLib lbl = new LoopboxLib(); lbl.Load(SetupXML.GetLarge); Assert.IsTrue(lbl.IsLoaded()); }
public void Playlists2() { LoopboxLib lbl = new LoopboxLib(); lbl.Load(SetupXML.Get2Playlists); Assert.IsTrue(lbl.IsLoaded()); Assert.AreEqual(lbl.GetAllPlaylistsCount(), 2); }
public void Only4Tracks() { LoopboxLib lbl = new LoopboxLib(); lbl.Load(SetupXML.Get4Tracks); Assert.IsTrue(lbl.IsLoaded()); Assert.AreEqual(lbl.GetTracksCount(), 4); Assert.AreEqual(lbl.GetAllPlaylistsCount(), 0); Assert.AreEqual(lbl.GetTracksExistsCount(), 0); }
public MainWindow() { loopbox = new LoopboxLib(); InitializeComponent(); CheckButtonsEnabled(); #if DEBUG loopbox.Load("C:/rekordbox.xml"); CheckButtonsEnabled(); #endif }
static void Main(string[] args) { LoopboxLib loopbox = new LoopboxLib(); if (args.Length > 0 && new FileInfo(args[0]).Exists) { loopbox.Load(args[0]); } else { loopbox.Load("C:/rekordbox.xml"); } Menu.Print(loopbox.ToString()); Menu.PrintAttribute("Tracks in library", loopbox.GetTracksCount().ToString()); Menu.PrintAttribute("Playlists in library", loopbox.GetAllPlaylistsCount().ToString()); loopbox.CreateVirtualDevice("debugdevice"); Console.ReadLine(); loopbox.RemoveVirtualDevice("debugdevice"); }
public StatisticsWindow(LoopboxLib loopbox) { this.loopbox = loopbox; InitializeComponent(); Setup(); }