C# Class AmazonScrape.ScoreDistributionControl

Inheritance: GridPlus, IValidatable
Show file Open project: ThomasRush/AmazonScrape

Public Methods

Method Description
ScoreDistributionControl ( ) : System
Validate ( ) : System.Windows.Controls.ValidationResult

Returns whether the control is validated Always returns true, as the control ensures valid values.

Private Methods

Method Description
GetNewSumOfLowRange ( RangeSliderX sender, double newValue ) : double

Returns the sum total of "low" range scores, given a RangeSlider that just had its value modified.

GetOtherSlidersWithPositiveLowScore ( RangeSliderX sender ) : List

Given a RangeSlider, provides a list of the other RangeSliders that have a positive "low" range value. Used when adjusting the total of the "low" range sliders to not exceed 100%.

slider_LowValueChanged ( RangeSliderX sender, double oldValue, double newValue ) : void

Prevents user from specifying a total minimum number of results that exceeds 100% by dynamically reducing the values of the other sliders.

Method Details

ScoreDistributionControl() public method

public ScoreDistributionControl ( ) : System
return System

Validate() public method

Returns whether the control is validated Always returns true, as the control ensures valid values.
public Validate ( ) : System.Windows.Controls.ValidationResult
return System.Windows.Controls.ValidationResult