public Stream() { _ps = new PlayStream(); _listener = new PropertyChangedEventListener(_ps); _listener.RegisterHandler(UpdateHandlerProxy); }
public RadioChannelListViewModel() { var kernelProvider = KernelProvider.Instance; Players = kernelProvider.GetAll <IPlayer>().ToList(); ISettingsDao settingsDao = kernelProvider.Get <ISettingsDao>(); _playStream = new PlayStream(Players.First()); Channels = new ObservableCollection <RadioChannelViewModel>(); Settings = new SettingsViewModel(_playStream, settingsDao); LoadChannels(); MainInstance = this; }
public void Dispose() { _ps = null; _listener.Dispose(); }
public SettingsViewModel(PlayStream stream, ISettingsDao dao) { _settingsDao = dao; _stream = stream; InitializeSettings(); }