Exemple #1
0
 private void Init()
 {
     _coverFactory = new CoverFactory();
     _coverFactory.HttpFailHandler    += _coverFactory_GetCoverInfosFailed;
     _coverFactory.HttpSucessHandler  += _coverFactory_GetCoverInfosSuccess;
     _coverFactory.HttpTimeOutHandler += _coverFactory_GetCoverInfosTimeout;
     _timer          = new DispatcherTimer();
     _timer.Interval = TimeSpan.FromMilliseconds(5000);
     _timer.Tick    += new EventHandler(_timer_Tick);
     _bitmapImages   = new List <BitmapImage>();
     _coverInfos     = new List <CoverInfo>();
 }
Exemple #2
0
 private void Init()
 {
     _coverFactory = new CoverFactory();
     _coverFactory.HttpFailHandler += _coverFactory_GetCoverInfosFailed;
     _coverFactory.HttpSucessHandler += _coverFactory_GetCoverInfosSuccess;
     _coverFactory.HttpTimeOutHandler += _coverFactory_GetCoverInfosTimeout;
     _timer = new DispatcherTimer();
     _timer.Interval = TimeSpan.FromMilliseconds(5000);
     _timer.Tick += new EventHandler(_timer_Tick);
     _bitmapImages = new List<BitmapImage>();
     _coverInfos = new List<CoverInfo>();
 }