Exemple #1
0
        public Stream()
        {
            _ps = new PlayStream();

            _listener = new PropertyChangedEventListener(_ps);
            _listener.RegisterHandler(UpdateHandlerProxy);
        }
Exemple #2
0
        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;
        }
Exemple #3
0
 public void Dispose()
 {
     _ps = null;
     _listener.Dispose();
 }
Exemple #4
0
 public SettingsViewModel(PlayStream stream, ISettingsDao dao)
 {
     _settingsDao = dao;
     _stream      = stream;
     InitializeSettings();
 }