상속: IReceiverHandler, IEnumerable, INotifyCollectionChanged
예제 #1
0
        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;
        }