private void DatePopup_Load(object sender, EventArgs e) { Current = this; if (masterClock) { if (Properties.Settings.Default.ShowUTCTime) { ScratchTime = SpaceTimeController.Now; } else { ScratchTime = SpaceTimeController.Now.ToLocalTime(); } } UpdateTimeFields(); if (masterClock) { showUtcTime.Checked = Properties.Settings.Default.ShowUTCTime; } else { showUtcTime.Visible = false; this.PushPin.Visible = false; } }
private void DatePopup_FormClosed(object sender, FormClosedEventArgs e) { Current = null; }