// Program executing with overloaded methods. private void allConversions(TemperatureScales.Fahrenheit fahrenheit) { openTurn = false; celsiusTextBox.Text = fahrenheit.Celsius().ToString(); kelvinTextBox.Text = fahrenheit.Kelvin().ToString(); openTurn = true; }
private void allConversions(TemperatureScales.Kelvin kelvin) { openTurn = false; fahrenheitTextBox.Text = kelvin.Fahrenheit().ToString(); celsiusTextBox.Text = kelvin.Celsius().ToString(); openTurn = true; }