示例#1
0
        public FrmTestPreimage(IAimpServicePlaylistManager manager, IAimpCore core)
            : this()
        {
            _manager   = manager;
            _core      = core;
            _playlists = new List <string>();

            _factory = new TestPreimageFactory();
            _core.RegisterExtension(this);
            _core.RegisterExtension(_factory);

            for (int i = 0; i < _manager.GetLoadedPlaylistCount(); i++)
            {
                IAimpPlaylist pl;
                var           result = _manager.GetLoadedPlaylist(i);

                if (result.ResultType == ActionResultType.OK)
                {
                    PlAdded(result.Result);
                }
            }
        }
示例#2
0
 public TestPreimage(TestPreimageFactory factory)
 {
     _factory = factory;
     _factory.Preimages.Add(this);
     AutoSync = true;
 }