コード例 #1
0
        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;
        }
コード例 #2
0
 public void Initialize()
 {
     mlp  = MusicListPool.INSATNCE;
     cpl  = CataloguePool.INSATNCE;
     mmdr = new MediaMetaDataReader();
     mlp.AddToPool(@"F:\M2\", mmdr);
 }