private void lblSetSystemTime_DoubleClick(object sender, EventArgs e) { ConfigLocalDateTime.SYSTEMTIME systemTime = new ConfigLocalDateTime.SYSTEMTIME(); systemTime.InitSystemTimeValue(DateTime.Now.AddTicks(ts.Ticks)); ConfigLocalDateTime.SetLocalTime(ref systemTime); ts = new TimeSpan(); MessageBox.Show("系统时间已经校正完成!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); //new MessageBoxEx("系统时间已经校正完成!", MessageboxExIcon.OK) { NewPrivateInterval = 1000 }.Show(); }
private void lblSetSystemTime_DoubleClick(object sender, EventArgs e) { ConfigLocalDateTime.SYSTEMTIME systemTime = new ConfigLocalDateTime.SYSTEMTIME(); systemTime.InitSystemTimeValue(DateTime.Now.AddTicks(ts.Ticks)); ConfigLocalDateTime.SetLocalTime(ref systemTime); ts = new TimeSpan(); MessageBox.Show("系统时间已经校正完成!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); //new MessageBoxEx("系统时间已经校正完成!", MessageboxExIcon.OK) { NewPrivateInterval = 1000 }.Show(); }