Example #1
0
 private void txtUnixTime_Leave(object sender, EventArgs e)
 {
     try
     {
         _time = new BigTime(txtUnixTime.Text);
     }
     catch { }
 }
Example #2
0
        private void txtInternetTime_Leave(object sender, EventArgs e)
        {
            if (!txtInternetTime.Text.StartsWith("@"))
            {
                txtInternetTime.Text = "@" + txtInternetTime.Text;
            }

            _time = BigTime.Parse(txtInternetTime.Text);
        }
Example #3
0
        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();
        }
Example #4
0
        private void txtCustomTime_Leave(object sender, EventArgs e)
        {
            if (cboTimeZone.SelectedIndex < 0)
            {
                cboTimeZone.SelectedIndex = 0;
            }

            _time = BigTime.Parse(txtCustomTime.Text, (TimeZoneInfo)cboTimeZone.SelectedItem);
        }
Example #5
0
 private void txtLocalTime_Leave(object sender, EventArgs e)
 {
     _time = BigTime.Parse(txtLocalTime.Text, TimeZoneInfo.Local);
 }
Example #6
0
 private void txtTime_Leave(object sender, EventArgs e)
 {
     _time = DateTime.Parse(txtUtcTime.Text);
 }
Example #7
0
        private void btnGet_Click(object sender, EventArgs e)
        {
            _time = BigTime.UtcNow;

            RefreshView();
        }