private void RunModel(string searchTerm)
        {
            VideoMetadataCollection.Clear();

            List <KeyValuePair <string, string> > metadata = null;

            if (_metadataCounter == 0)
            {
                metadata = _metadata1;
            }
            else if (_metadataCounter == 1)
            {
                metadata = _metadata2;
            }
            else if (_metadataCounter == 2)
            {
                metadata = _metadata3;
            }
            else if (_metadataCounter == 3)
            {
                metadata = _metadata4;
            }
            else if (_metadataCounter == 4)
            {
                metadata = _metadata1;
            }

            foreach (var item in metadata)
            {
                var data = new VideoMetadata()
                {
                    Key = item.Key, Value = item.Value
                };
                VideoMetadataCollection.Add(data);
            }

            SearchVideoMetadata(searchTerm);

            _metadataCounter++;
            if (_metadataCounter > 4)
            {
                _metadataCounter = 1;
            }
        }
        public MetadataViewerViewModel()
        {
            PopulateTestMetadata();

            VideoMetadataCollection      = new ObservableCollection <VideoMetadata>();
            _videoMetadataCollectionView = CollectionViewSource.GetDefaultView(VideoMetadataCollection);

            foreach (var item in _metadata2)
            {
                var metadata = new VideoMetadata()
                {
                    Key = item.Key, Value = item.Value
                };
                VideoMetadataCollection.Add(metadata);
            }

            _timer          = new DispatcherTimer();
            _timer.Interval = TimeSpan.FromMilliseconds(150);
            _timer.Tick    += _timer_Tick;
        }