private void radTimeZone_CheckedChanged(object sender, System.EventArgs e) { cboTimeZone.Enabled = radSpecified.Checked; System.TimeZone current = GetValue(); SetButtonEnabled(DialogResult.OK, (current != null && !current.Equals(m_original))); }
private void cboTimeZone_SelectedIndexChanged(object sender, System.EventArgs e) { if (cboTimeZone.SelectedIndex == -1) { SetButtonEnabled(DialogResult.OK, false); } else { System.TimeZone current = GetValue(); SetButtonEnabled(DialogResult.OK, (current != null && !current.Equals(m_original))); } }