public MediaPlayerWindow(bool aEnabled, IRefreshHandler aRefreshHandler) { InitializeComponent(); iRefreshHandler = aRefreshHandler; buttonRefresh.Click += new RoutedEventHandler(EventButtonRefreshClick); iReceiverList = new ReceiverList(this.Dispatcher); iReceiverList.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(EventReceiverListCollectionChanged); iMediaPlayerConfiguration = MediaPlayerConfiguration.Load(aEnabled); listBoxReceivers.ItemsSource = iMediaPlayerConfiguration.MediaPlayerList; }