public MainWindow() : base() { InitializeComponent(); mlp = MusicListPool.INSATNCE; laudio = LpsAudio.INSTANCE(); mmdr = new MediaMetaDataReader(); mlp.AddToPool("F:/M2", mmdr); foreach (MusicEntity me in mlp.Musics) { dipMusic.Add(me); } intp = Interpreter.INSTANCE(@"F:\Lunalipse\TestUnit\bin\Debug"); //if (intp.Load("prg2")) //{ // PlayFinished(); //} alb.Source = mlp.ToCatalogue().GetCatalogueCover(); AudioDelegations.PostionChanged += (x) => { //Console.WriteLine(x); }; AudioDelegations.PlayingFinished += PlayFinished; dipMusic.ItemSelectionChanged += DipMusic_ItemSelectionChanged; }
public void Initialize() { mlp = MusicListPool.INSATNCE; cpl = CataloguePool.INSATNCE; mmdr = new MediaMetaDataReader(); mlp.AddToPool(@"F:\M2\", mmdr); }