Example #1
0
        private void label1_Click(object sender, EventArgs e)
        {
            Form_TimeDialog dlg = new Form_TimeDialog();

            if (DialogResult.OK == dlg.ShowDialog())
            {
                DateTime   dt = dlg.GetDateTime;
                SystemTime st = new SystemTime();
                st.FromDateTime(dt);
                SystemTime.SetLocalTime(ref st);
            }
            dlg.Close();
        }
Example #2
0
        private void lbModifyDateTime_Click(object sender, EventArgs e)
        {
            Form_TimeDialog dlg = new Form_TimeDialog();

            if (DialogResult.OK == dlg.ShowDialog())
            {
                DateTime   dt = dlg.GetDateTime;
                SystemTime st = new SystemTime();
                st.FromDateTime(dt);
                SystemTime.SetLocalTime(ref st);
                CSQLite.G_CSQLite.WriteRunLogInfoDB("0xD5", "手动修改时间成功");
            }
            dlg.Close();
        }