Exemple #1
0
        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)));
        }
Exemple #2
0
 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)));
     }
 }