private void txtUnixTime_Leave(object sender, EventArgs e) { try { _time = new BigTime(txtUnixTime.Text); } catch { } }
private void txtInternetTime_Leave(object sender, EventArgs e) { if (!txtInternetTime.Text.StartsWith("@")) { txtInternetTime.Text = "@" + txtInternetTime.Text; } _time = BigTime.Parse(txtInternetTime.Text); }
private void bgwTime_ProgressChanged(object sender, ProgressChangedEventArgs e) { BigTime now = BigTime.UtcNow; lblCurrentUnixTime.Text = now.ToUnixTime().ToString(); lblCurrentUtcTime.Text = now.ToString(); lblInternetTime.Text = now.ToInternetTimeString(); }
private void txtCustomTime_Leave(object sender, EventArgs e) { if (cboTimeZone.SelectedIndex < 0) { cboTimeZone.SelectedIndex = 0; } _time = BigTime.Parse(txtCustomTime.Text, (TimeZoneInfo)cboTimeZone.SelectedItem); }
private void txtLocalTime_Leave(object sender, EventArgs e) { _time = BigTime.Parse(txtLocalTime.Text, TimeZoneInfo.Local); }
private void txtTime_Leave(object sender, EventArgs e) { _time = DateTime.Parse(txtUtcTime.Text); }
private void btnGet_Click(object sender, EventArgs e) { _time = BigTime.UtcNow; RefreshView(); }