コード例 #1
0
        private void txtInternetTime_Leave(object sender, EventArgs e)
        {
            if (!txtInternetTime.Text.StartsWith("@"))
            {
                txtInternetTime.Text = "@" + txtInternetTime.Text;
            }

            _time = BigTime.Parse(txtInternetTime.Text);
        }
コード例 #2
0
        private void txtCustomTime_Leave(object sender, EventArgs e)
        {
            if (cboTimeZone.SelectedIndex < 0)
            {
                cboTimeZone.SelectedIndex = 0;
            }

            _time = BigTime.Parse(txtCustomTime.Text, (TimeZoneInfo)cboTimeZone.SelectedItem);
        }
コード例 #3
0
 private void txtLocalTime_Leave(object sender, EventArgs e)
 {
     _time = BigTime.Parse(txtLocalTime.Text, TimeZoneInfo.Local);
 }