///////////////////////////////////////////////////////////////////////////////
        // Methods and Eventhandling for Background tasks                            //
        ///////////////////////////////////////////////////////////////////////////////

        ///////////////////////////////////////////////////////////////////////////////
        // Methods for doing main class job                                          //
        ///////////////////////////////////////////////////////////////////////////////

        /// <summary>
        ///   The update ui with filter.
        /// </summary>
        private void UpdateUIWithFilter()
        {
            if (this.CurrentInterpolationFilter == null)
            {
                this.CurrentInterpolationFilter = InterpolationFilter.Filter[InterpolationFilterTypes.MovingAverage];
            }

            this.InterpolationFilterCombo.SelectedItem = this.CurrentInterpolationFilter;
        }
        /// <summary>
        /// The interpolation filter combo_ selection changed.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        private void InterpolationFilterComboSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var filter = (InterpolationFilter)this.InterpolationFilterCombo.SelectedItem;

            this.CurrentInterpolationFilter = filter;

            // Remove old property sets.
            this.InterpolationFilterPropertyGrid.Children.Clear();

            // Add custom property control
            this.InterpolationFilterPropertyGrid.Children.Add(filter.CustomUserControl);
        }