0
이 코드를 더 간단하게 만들 수 있습니까?C# numericUpDown time validate
private void hourNumericUpDown_ValueChanged(object sender, EventArgs e)
{
if (hourNumericUpDown.Value == 0 & minutesNumericUpDown.Value == 0) { okButton.Enabled = false; } else okButton.Enabled = true;
// same in minutesNumericUpDown's event
}
Soo 미안하지만 실제로는 ok 버튼도 있습니다 :) 어쨌든 thx –
OK great - up 대답의 기한은 –
입니다. || 대신에 &&? –