Пример #1
0
 // 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;
 }
Пример #2
0
 private void allConversions(TemperatureScales.Kelvin kelvin)
 {
     openTurn = false;
     fahrenheitTextBox.Text = kelvin.Fahrenheit().ToString();
     celsiusTextBox.Text = kelvin.Celsius().ToString();
     openTurn = true;
 }