Exemplo n.º 1
0
        public void Clear()
        {
            // clear any existing data context settings
            if (null != _collection)
            {
                _collection.Stop();
                _collection = null;
            }

            // reset UI
            _errorTextBox.Text = null;
            _grid.DataContext  = null;
            _grid.Columns.Clear();
            _playButton.IsEnabled = false;
            _stopButton.IsEnabled = false;
        }