数据操作 valuechange事件
private void NUPDecimalPlaces_ValueChanged(object sender, EventArgs e)
{
NumericUpDown NUP = sender as NumericUpDown;
string NUPValue = NUP.Value.ToString();
string[] ValueArr = NUPValue.Split('.');
if (ValueArr.Length>1)
{
NUP.DecimalPlaces = ValueArr[1].Length;
}
}