I keep getting a NullReferenceException. How do I initialize my doubles to determine if they are null? Sorry for the noob question :(
private void slider1_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
{
//gets new value of slider
double newValue = (double)Math.Round(e.NewValue);
//gets current/previous value of slider
double currentValue = slider1.Value;
//gets sum of previous value - new value
double valueSum = (double)Math.Round(currentValue - newValue);