GetDouble() public static method

public static GetDouble ( string text, double defaultValue ) : double
text string
defaultValue double
return double
 private void tbCholesterol_TextChanged(object sender, TextChangedEventArgs e)
 {
     controller.SetCholesterol(StringToNumberUtility.GetDouble(tbCholesterol.Text, 0.00));
 }
 private void tbNeck_TextChanged(object sender, TextChangedEventArgs e)
 {
     controller.SetNeck(StringToNumberUtility.GetDouble(tbNeck.Text, 0.00));
 }
 private void tbIdealBMI_TextChanged(object sender, TextChangedEventArgs e)
 {
     controller.SetIdealBMI(StringToNumberUtility.GetDouble(tbIdealBMI.Text, 0.00));
 }