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); } } }
public TestPreimage(TestPreimageFactory factory) { _factory = factory; _factory.Preimages.Add(this); AutoSync = true; }