Beispiel #1
0
 private void hour24Button_CheckedChanged(object sender, EventArgs e)
 {
     if (hour24Button.Checked)
     {
         toAmPmLabel.Visible   = false;
         fromAmPmLabel.Visible = false;
         TimeValidator.ConvertTo24(this);
         Settings.SetSetting("TimeFormat", "24");
     }
 }
Beispiel #2
0
 private void hour12Button_CheckedChanged(object sender, EventArgs e)
 {
     if (hour12Button.Checked)
     {
         toAmPmLabel.Visible   = true;
         fromAmPmLabel.Visible = true;
         TimeValidator.ConvertTo12(this);
     }
     Settings.SetSetting("TimeFormat", "12");
 }
Beispiel #3
0
        private void fromTimeTextBox_Leave(object sender, EventArgs e)
        {
            var time = fromTimeTextBox.Text;

            if (hour12Button.Checked)
            {
                TimeValidator.SetAmPm(this, time, "from");
            }
            fromTimeTextBox.Text = TimeValidator.validateTime(time, this);
            Settings.SetSetting("WorkTimeStart", fromTimeTextBox.Text);
        }