小弟是初学C#的新手
目前正用Windows Form写度量衡的接口
但刚刚写到温度的转换时遇到困难
目前我使用2个numericUpDown来做摄氏和华氏的转换
我目前在华氏这个numericUpDown中写了
private void FahrenheitUpDown_ValueChanged(object sender, EventaArgs e)
{
double temperature1;
double a = (double)FahrenheiUpDown.Value;
double b = (double)CentigradeUpDown.Value;
temperature1 = b * 9 / 5 + 32;
}
请问我要怎么写才能在华氏这个Updown调整数值时
同时摄氏Updown的数值也跟着变动
初学者表达不清楚请见谅